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

Bind RadGrid on DropdownList change Event using Odata

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ronak
Top achievements
Rank 1
Ronak asked on 17 Feb 2012, 05:21 PM
Hi Telerik team,
We have ADO.NET service which is hosted on server and i would like to use grid Client side data binding feature explained here in this post
http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx
This is good starting point but i don't want to bind grid on load but i would like to use on when user select value from combobox

Please advise how can i achieve this

Thanks
Ronak

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 22 Feb 2012, 10:58 AM
Hi Ronak,

You can add a ServiceReference to the service, so you can use it in client script and then perform programmatic client-side binding - you can at first bind the grid to an empty data source and on the provided action use set_dataSource() and databind() methods of the MasterTableView client object to rebind the grid to the new datasource.

More information on the specifics of client-side binding is available here:
http://www.telerik.com/help/aspnet-ajax/grid-client-side-binding.html

Let us know if you have further questions on this matter.

Kind regards,
Tsvetina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ronak
Top achievements
Rank 1
answered on 22 Feb 2012, 02:58 PM
Thanks for your reply i am working in sharepoint 2007 and i have script manager in master page so adding service reference will not work and i want to use Odata Binding if it possible to achieve what i want.

Please advise

Thanks
Ronak
0
Tsvetina
Telerik team
answered on 25 Feb 2012, 09:00 AM
Hello Ronak,

Then you should be able to add a service reference to the project in Visual Studio. The idea is to register the service, so that you can use it in javascript in any way that your platform/project supports.

Kind regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Ronak
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Ronak
Top achievements
Rank 1
Share this question
or