Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I have a list of array of objects. I want to bind the list to an Telerik Rad List Box. I want to bind few fields of object as Text Field and few fields of object as Value Fields.
Posted
Comments
[no name] 25-Sep-14 11:34am    
Sounds like something you would need to talk to Telerik about.
Sagar Devanahalli 25-Sep-14 11:37am    
Yes Wes Aday...I want to bind whatever data I have in List<Object> type to Telerik Rad ListBox..
[no name] 25-Sep-14 11:52am    
And? What did Telerik say when you asked them how to use their controls in this manner?

1 solution

I recommend declaring an interface that has the properties that you want bound, and making the collection a List<ITheInterface>. Now, make all of the classes that you want in the collection implement ITheInterface and you'll find that the binding is much simpler. Not to mention you're now type safe because you can't add something to the collection that would break the binding.
 
Share this answer
 
v3

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