Hello, I have a page with a listbox showing some time selections ('This Month', 'This Year', etc.) and a grid showing the appropriate events. By default, the page shows this month's events.
The listbox drives the grid on postback. Let's say I click 'This Year'. The grid rebinds to show all events for this year. But when I click the back button, the grid goes back to show 'This month' but the listbox doesn't - it still shows 'This Year'.
The grid is using AJAX, the listbox isn't.
How can this be fixed? Thanks.
The listbox drives the grid on postback. Let's say I click 'This Year'. The grid rebinds to show all events for this year. But when I click the back button, the grid goes back to show 'This month' but the listbox doesn't - it still shows 'This Year'.
The grid is using AJAX, the listbox isn't.
How can this be fixed? Thanks.
4 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 05 Jun 2008, 06:11 AM
Hi Darius,
Go through the following link.
Use Telerik RadGrid AJAX to update inside/outside controls
Thanks
Princy.
Go through the following link.
Use Telerik RadGrid AJAX to update inside/outside controls
Thanks
Princy.
0
Hi guys,
Consider using RadAjaxManager for ASP.NET AJAX which preserves the IE browser history when using the Back/Forward buttons:
http://www.telerik.com/help/aspnet-ajax/ajxbackforwardbtns.html
Kind regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Consider using RadAjaxManager for ASP.NET AJAX which preserves the IE browser history when using the Back/Forward buttons:
http://www.telerik.com/help/aspnet-ajax/ajxbackforwardbtns.html
Kind regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Darius
Top achievements
Rank 1
answered on 05 Jun 2008, 01:40 PM
I am using the RadAjaxManager, my code is as follows:
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID=""> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="gridMain"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="gridMain" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="RadScheduler1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" |
| Transparency="0" Width="75px"> |
| <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
| style="border: 0px;" /> |
| </telerik:RadAjaxLoadingPanel> |
As you can see the grid is using AJAX but the listbox that's driving it - isn't. Also, Princy's suggestion might not work for me because my scenario is different. It's as follows:
1. Click on listbox.
2. Rebind grid.
3. Click back button.
4. Grid changes back, listbox doesn't.
0
Hello Darius,
I tried to reproduce the problem locally, but everything seems to work as expected (see attached project). Can you please open a support ticket and send us a small sample project where we can observe the problem? We will check it and do our best to help.
Greetings,
Plamen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I tried to reproduce the problem locally, but everything seems to work as expected (see attached project). Can you please open a support ticket and send us a small sample project where we can observe the problem? We will check it and do our best to help.
Greetings,
Plamen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center