or
RadListDataItem rcbi0 = new RadListDataItem("ANY");RadListDataItem rcbi1 = new RadListDataItem("1");RadListDataItem rcbi2 = new RadListDataItem("10");RadListDataItem rcbi3 = new RadListDataItem("15");RadListDataItem rcbi4 = new RadListDataItem("20");RadListDataItem rcbi5 = new RadListDataItem("25");RadListDataItem rcbi6 = new RadListDataItem("30");RadListDataItem rcbi7 = new RadListDataItem("40");radDropDownListPriceMin.Items.AddRange(new[]{ rcbi0, rcbi1, rcbi2, rcbi3, rcbi4, rcbi5, rcbi6, rcbi7});radDropDownListPriceMin.SelectedIndex = 0;radDropDownListPriceMax.Items.AddRange(new[]{rcbi0, rcbi1, rcbi2, rcbi3, rcbi4, rcbi5, rcbi6, rcbi7});radDropDownListPriceMax.SelectedIndex = 0;RadListDataItems to radDropDownListPriceMax BUT radDropDownListPriceMin is empty!
This code works fine in Q3:
string[] pricesList = new string[7];pricesList[0] = "ANY";pricesList[1] = "1";pricesList[2] = "10";pricesList[3] = "15";pricesList[4] = "20";pricesList[5] = "25";pricesList[6] = "30";radDropDownListPriceMin.Items.AddRange(pricesList);radDropDownListPriceMin.SelectedIndex = 0;radDropDownListPriceMax.Items.AddRange(pricesList);radDropDownListPriceMax.SelectedIndex = 0;Hello,
I am new at this as I am trying to learn and get comfortable with Telerik. I have a winform app with 2 combo boxes, which are bind from a dataset/datatable. And I would like some sample code on how to bind different images to all each item in my combo box 1 and combo box 2.
After that I would like to code for the selected_index changed of the combo box 1. I would like to re-bind the data of the combo box 2 base on the selection on combo box 1.
I can do all of that in the normal combo box where I manually typed in all the items to the combo box and then uses the RadListDataItem Collection Editor to add in the images....but I want to do it with code as my combo box 2 changes base on the selection of combo box 1.
Thanks.
For Each res As Resource In RadScheduler1.Resources res.Color = Color.AquamarineNextDim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)schtimelineGrouping.RefreshViews(True)schtimelineGrouping = NothingFor Each res As Resource In RadScheduler1.Resources res.Color = Color.AquamarineNext Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)schtimelineGrouping.RefreshViews(True)schtimelineGrouping = Nothing