Jimmy Quach
Top achievements
Rank 1
Jimmy Quach
asked on 17 Aug 2009, 02:18 AM
I have a radcombobox that using an item template to show tabular data. There is 3 columns in total.
This all works fine on server side if I create the collection of RadComboBoxItems and have it bound to the control. The item template will render the tabular data.
What I am trying to achieve now is to create the items client side. So I am using javscript to create the items and adding it to the collection and setting the attributes as well. I am not using databinding on server side so i am not sure on how to get the itemtemplate to render the multi-columns.
So I need to know
1. how to implement the itemtemplate without server side binding
2. how get templates to work on client side
Can some one point me in the right direction.
Thanks
This all works fine on server side if I create the collection of RadComboBoxItems and have it bound to the control. The item template will render the tabular data.
What I am trying to achieve now is to create the items client side. So I am using javscript to create the items and adding it to the collection and setting the attributes as well. I am not using databinding on server side so i am not sure on how to get the itemtemplate to render the multi-columns.
So I need to know
1. how to implement the itemtemplate without server side binding
2. how get templates to work on client side
Can some one point me in the right direction.
Thanks
6 Answers, 1 is accepted
0
Hello Jimmy Quach,
This is not possible with the current official versions of the framework. It will be possible in .NET 4.0
Please find more information and a sample project here.
Greetings,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
This is not possible with the current official versions of the framework. It will be possible in .NET 4.0
Please find more information and a sample project here.
Greetings,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jimmy Quach
Top achievements
Rank 1
answered on 17 Aug 2009, 10:34 PM
Hi Veselin,
So what you suggesting is the current release of Telerik does not work with .NET 3.5 SP1, but will work once upgraded to .NET 4.0?
Also to confirm, I am not using a web service to load the items, rather they are created on client side using javascript. Will this still trigger the onclientitemdatabound event as per the link you supplied?
Thanks, Jim
So what you suggesting is the current release of Telerik does not work with .NET 3.5 SP1, but will work once upgraded to .NET 4.0?
Also to confirm, I am not using a web service to load the items, rather they are created on client side using javascript. Will this still trigger the onclientitemdatabound event as per the link you supplied?
Thanks, Jim
0
Hello Jimmy Quach,
What I was trying to say is that ItemTemplate of RadComboBox does not work with items loaded from WebService or created client-side (these approaches are similar) and .NET 3.5.
This wont be a problem in .NET 4.0 where you can have client-side templates.
The OnClientItemDataBound event is fired when loading the items from the WebService only.
I suggest you try the classic load on demand way with the ItemsRequested event.
Best wishes,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
What I was trying to say is that ItemTemplate of RadComboBox does not work with items loaded from WebService or created client-side (these approaches are similar) and .NET 3.5.
This wont be a problem in .NET 4.0 where you can have client-side templates.
The OnClientItemDataBound event is fired when loading the items from the WebService only.
I suggest you try the classic load on demand way with the ItemsRequested event.
Best wishes,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jimmy Quach
Top achievements
Rank 1
answered on 18 Aug 2009, 10:38 PM
Thanks
Unfortunately, the data source is client side so there is no need for server side binding.
Unfortunately, the data source is client side so there is no need for server side binding.
0
Tilak
Top achievements
Rank 1
answered on 28 Jan 2010, 12:25 AM
Hi Veselin,
I left a comment on the article and didn't get any response. How do we accomplish paging using the clientside template binding feature you explained in the article as the web service return type is an IEnumerable and not RadComboBoxItemData.
Thanks for your time,
Tilak
I left a comment on the article and didn't get any response. How do we accomplish paging using the clientside template binding feature you explained in the article as the web service return type is an IEnumerable and not RadComboBoxItemData.
Thanks for your time,
Tilak
0
Hi Tilak M,
Please find attached a sample implementation.
Hope this will get you started.
Best wishes,
Veskoni
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Please find attached a sample implementation.
Hope this will get you started.
Best wishes,
Veskoni
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.