My project setup is as follows:
Master - content - code generated tab strip - code generated page view - user control page
The master page contains an Ajax manager with an Ajax proxy inside of the user control page
Inside my user control I have a button to open a rad Window defined in the master page, and a rad Grid. Within the window is a rad upload, and for the post back event I have added functionality to do an insert into my database.
What I would like to do is refresh the grid after I have inserted into my DB.
I have been working with this example:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid
The problem I am having is that I am unable to use code based on the
Thanks for any help
Master - content - code generated tab strip - code generated page view - user control page
The master page contains an Ajax manager with an Ajax proxy inside of the user control page
Inside my user control I have a button to open a rad Window defined in the master page, and a rad Grid. Within the window is a rad upload, and for the post back event I have added functionality to do an insert into my database.
What I would like to do is refresh the grid after I have inserted into my DB.
I have been working with this example:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid
The problem I am having is that I am unable to use code based on the
OnAjaxRequest
event in the master page because my grid is located in the child control, and the proxy manager can't handle this event, so I'm unable to use the code in the child page.protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) |
{ |
if (e.Argument == "Rebind") |
{ |
RadGrid1.MasterTableView.SortExpressions.Clear(); |
RadGrid1.MasterTableView.GroupByExpressions.Clear(); |
RadGrid1.Rebind(); |
} |
else if (e.Argument == "RebindAndNavigate") |
{ |
RadGrid1.MasterTableView.SortExpressions.Clear(); |
RadGrid1.MasterTableView.GroupByExpressions.Clear(); |
RadGrid1RadGrid1.MasterTableView.CurrentPageIndex = RadGrid1.MasterTableView.PageCount - 1; |
RadGrid1.Rebind(); |
} |
} |
Thanks for any help