Is it possible to do this at run time, if so how.
It is possible to do this with a list that is bound to datasource?
Thanks
5 Answers, 1 is accepted
When using the control in data bound mode you should not manipulate the items directly (e.g. you should not call the Insert, Add or Clear methods of the Items collection).
I would suggest that you prepare the items in the DataLayer (for example, sort them).
Do not hesitate to contact us if you have other questions.
Peter
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
If we through operate the data source(for example, remove and insert,),so that we can change the order they are displayed (Up and down).However, The selected Item is always the first Item in RadListControl visible region because of the vertical scroll bar ---what is not expected.
How to do?
Thanks!
Thank you for contacting us.
As far as I understand, you want to remove the selected item in order to modify the DataSource.
To achieve this you can set SelectedIndex to -1 before modifying the data source - this will clear the selected item.
I hope this helps.
Peter
the Telerik team
Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.
Hi,
How to remove a particular item from RadDropDownList?
for eg., I can Add like, rddl_Items.Add("Car")
IN Vb.Net, I can remove like, rddl_Items.remove("Car")
Please help.
Thanks in advance
Thank you for writing.
You can directly access the Items collection and use either the Remove or RemoveAt methods. The first method received a RadListDataItem as a parameter and the second receives an index.
I hope this information was useful. Should you have further questions please do not hesitate to write back.
Regards,
Hristo Merdjanov
Telerik by Progress