Could you please help to fill a telerik RadRibbonComboBox item dynamically from C# code behind by the Binding.
I already done that in the XAML page by the below instructions, and now need to do it in the code behind ?
<telerik:RadRibbonComboBox Name="Cmb" SelectedIndex="0" IsEditable="False" Width="98" Margin="0 2 1 2" SelectionChanged="CmbSelectionChanged">
<telerik:RadRibbonComboBoxItem Content="myContent" Tag="myTag" />
Regards
I think you can add attribute id and onitemdatabound.
<telerik:RadRibbonComboBox Name="Cmb" SelectedIndex="0" IsEditable="False" Width="98" Margin="0 2 1 2" SelectionChanged="CmbSelectionChanged" id="myRadRibbon" onitemdatabound="myRadRibbon">
After that you can make function in c# code behind (or this function will generate automatically).
protected void myRadRibbon(object o, RadComboBoxItemEventArgs e)
{
//bind
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.