Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using telerik wpf controls
here is my code snippet from wpf xaml file please have a look.
I am using using binding to populate combobox.
i want to set tootips on each items in a comboox except first item
myt itemd are static there will be only 4 items there
item1 "Select"
item2 "Reconciliation"
item2 "Review"
item2 "History"


<ComboBox
x:Name="cmbBankReconciliationFunction"
IsEditable="True"
IsReadOnly="True"
ItemsSource="{Binding BanckReconciliationFunctions}"
SelectedValue="{Binding SelectedFunction, Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
IsRequired="True"
Margin="17,0,0,0">


is it possible to capture some event in code behind file and can e achieve the expected results ?
any help would be much appretiated
Thanks

What I have tried:

what i have tried is to use the itemteplate and resource for combobox in a wpf xaml code but not be able to get the results.
Posted
Updated 24-Aug-18 12:01pm

1 solution

Telerik controls are custom controls. Telerik has their own forums for their controls. Here are the forums for the WPF controls: UI for WPF Forums - Telerik Community[^]

Taking a stab at it, using data binding, you can manually set the ItemTemplate and SelectionBoxTemplate and set the tooltip in there. Here is a reference in the Telerik documentation as a starting point for working with these: Creating ItemTemplate and SelectionBoxTemplate | UI for WPF Documentation by Progress[^]

Then you could use a TemplateSelector for achieving your design goals. Telerik has an example of how to do this for a different requirement however the same principle applies: Enable\Disable RadComboBoxItems | UI for WPF Documentation by Progress[^]
 
Share this answer
 
Comments
Waqar (Vicky) 30-Aug-18 17:18pm    
Thanks
@graeme_grant

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900