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

Rebind datagrid from client-side javascript

5 Answers 226 Views
Grid
This is a migrated thread and some comments may be shown as answers.
thepilsbury
Top achievements
Rank 1
thepilsbury asked on 01 Feb 2008, 01:29 PM
I would like to be able to rebind a datagrid from client-side javascript using ajax technology. Can this be done? If so, do you have a sample I could follow?

Many thanks.

5 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Feb 2008, 01:46 PM
Hello,

Unfortunately, at present the required functionality is not available.
You can only use an AjaxRequest, to get to the server and rebind the control. I hope this is a suitable option for you.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
thepilsbury
Top achievements
Rank 1
answered on 01 Feb 2008, 07:44 PM
That may work for me. Please advise how to do this. I've tried the following but to no avail:

form1[

"<%=RadGrid1.ClientID %>"].AjaxRequest('<%= RadGrid1.UniqueID %>','Rebind');

Thanks

0
Konstantin Petkov
Telerik team
answered on 04 Feb 2008, 07:05 AM
Hello thepilsbury,

The built-in AJAX mode in RadGrid is removed in Prometheus. You can use RadAjax AjaxRequest instead:

http://www.telerik.com/help/radcontrols/prometheus/?ajxClientSideAPI.html

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
MGrassman
Top achievements
Rank 2
answered on 05 Feb 2008, 05:21 AM
Does this solution work with the radajaxmanagerproxy control.

If so can you list code.

Thanks,
0
Steve
Telerik team
answered on 05 Feb 2008, 09:26 AM
Hi MGrassman,

RadAjaxManagerProxy is only "AjaxSettings container" and does not expose AjaxRequest event. You can use GetCurrent() method to get the manager from the user control/content page and then wire up the AjaxRequest() method manually:

RadAjaxManager1.AjaxRequest += new Telerik.Web.UI.RadAjaxControl.AjaxRequestDelegate(this.RadAjaxManager1_AjaxRequest);

Here is another forum thread that elaborates on the matter.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
thepilsbury
Top achievements
Rank 1
Answers by
Yavor
Telerik team
thepilsbury
Top achievements
Rank 1
Konstantin Petkov
Telerik team
MGrassman
Top achievements
Rank 2
Steve
Telerik team
Share this question
or