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

Rebind Grid

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
altaf
Top achievements
Rank 1
altaf asked on 15 Dec 2008, 12:19 PM
Hello,
I have a page which has a grid and one button when i click on that button then a RadPopUp is opened. now i want when i close the popup then previous page grid rebind.

I have done this in my other page using radajaxmanager's ajaxRequest.
but here i am getting problem that all of my pages that are controls (.ascx) are being opened in loadpage.aspx and this contains a RadAjaxManager on it i am opening a popup in it which has that grid which i want  to update and now in this popup i am opening another popup and now i want to want the above functionality. if i put the RadAjaxManager on the page that has grid then it gives one error
"Only one instance of RadAjaxManager  can be added to the page!"

please tell me that how can i Rebind the grid using RajAjaxManagerProxy or any other way with out ajaxmanager ajaxrequest.

Thanks.


2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 16 Dec 2008, 01:32 PM
Hello Altaf,

You could use one RadAjaxManager on the master/main page and RadAjaxManagerProxy controls in the user controls. However the RadAjaxManagerProxy can be used for design-time configuration only. It does not have a client-side object, methods or events. In this case, when you need RadAjax instance at the code of a WebUserControl you can get the manager by RadAjaxManager.GetCurrent() method call. For more information on this matter please review the folloiwng help topics:

RadAjax and WebUserControls
RadAjax and MasterPage




Sincerely yours,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
altaf
Top achievements
Rank 1
answered on 16 Dec 2008, 01:45 PM

Hi,
Thanks a lot for reply.
I have solved the problem using this javascript methos.


function RebindGrid()

{

    //Find the grid

     var grid = $find("<%= radGrid1.ClientID %>").get_masterTableView();

     //rebind grid will fire the needDataSource event. 
    grid.rebind();

 }
Thanks

 

 

Tags
Grid
Asked by
altaf
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
altaf
Top achievements
Rank 1
Share this question
or