This is a migrated thread and some comments may be shown as answers.

AutoGenerateColumns and Client Binding?

3 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard Lindberg
Top achievements
Rank 1
Richard Lindberg asked on 23 Oct 2009, 11:06 AM
Hi, i am trying to use the RadGrid to display som data that I retrieve from the database. I want to use the same RadGrid to display the results to multiple database-querys to which I dont know how the result looks.

So I need to autogenerate the columns, I cant do it server side since I get the data from a web-service. Can I create columns from javascript or use the autogenerate feature in some way?

If I remove the <MasterTableView> tags, or the GridBoundColumns in the MasterTableView I end up with the same error every time. The "Cannot find any bindable properties in an item in the datasource", however if I have the GridBoundColumns there and bind to the same data the same way the grid works.

Anyone got some tips?

Best regards
Richard

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 28 Oct 2009, 11:28 AM
Hello Richard,

This scenario is not supported - if you need to use client-side binding you should necessarily use declared columns in mark-up.

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Simon Chulsky
Top achievements
Rank 1
answered on 31 Dec 2009, 12:16 PM
Hello
Something new from telerik about the subject?
0
Tsvetoslav
Telerik team
answered on 05 Jan 2010, 08:51 AM
Hi Simon,

Autogenerated columns with client-side databinding is a scenario that is not possible to be implemented into the RadGrid control. The reason is due to the fact that the columns are generated on the server according to the data coming from the data source. However, when using client-binding the data is coming from a web service and hence is not available at the time of the columns generation.

I hope this helps.

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Richard Lindberg
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Simon Chulsky
Top achievements
Rank 1
Share this question
or