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.Aquamarine
Next
Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
schtimelineGrouping.RefreshViews(True)
schtimelineGrouping = Nothing
For Each res As Resource In RadScheduler1.Resources
res.Color = Color.Aquamarine
Next
Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
schtimelineGrouping.RefreshViews(True)
schtimelineGrouping = Nothing
The brand new RadCommandBar is the successor of RadToolStrip. It is a flexible control for adding tool and button strips, which complement application menus in most Windows applications. The new control will come with the same features as the obsolete product (such as horizontal and vertical orientation, docking, drag and drop tool rearrangement, Add/Remove tools, etc.), but will also provide several new vital features:
The old RadToolStrip control will be supported for at least one year, but users will be encouraged to use the new control since it addresses the shortcomings of the previous one. Telerik will be glad to assist you with upgrading to the new version. To get technical support, either contact Telerik support or post in the CommandBar Forum.