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

Clientside databinding

2 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
staron
Top achievements
Rank 1
staron asked on 26 Feb 2009, 02:49 PM
Hi,
We are currently evaluating if we should use clientside databinding. In your projects I see that you are using list of classes representing tables in your getdata method. In our case we can't do that, therefore I was wondering if a more generic list type was supported. I tried returning IEnumerable, but that did not work.

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 02 Mar 2009, 09:24 AM
Hi staron,

RadGrid for ASP.NET AJAX supports client-side binding to web services or page methods. In order to assign data source for the grid and refresh its state on the client, utilize the set_dataSource(dataSource) and dataBind() methods from its client-side API. Keep in mind that the data source passed as an argument to the set_dataSource method should have JSON signature which can be serialized by a web service or a page method.

More information about Client-side binding is available in the following links:
Help topic
Declarative binding
Programmatic binding

If your IEnumerable source fulfills the prerequisites explained above, there should be no problems using it for RadGrid data source.

Kind regards,
Pavlina
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
staron
Top achievements
Rank 1
answered on 02 Mar 2009, 10:35 AM
Edit:Solved
Tags
Grid
Asked by
staron
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
staron
Top achievements
Rank 1
Share this question
or