I have a user control which contains a RadGrid and two RadDatePickers that let you choose the date range for the grid's data source. I've set up a submit button to trigger a partial postback to update the grid with data for the selected date parameters using a RadAjaxManager.
This user control is on a SharePoint 2007 page layout & master page. When debugging, I noticed the first time btnLoadHistory is pressed, the Page_Load event was occurring twice. The first time IsPostBack was true, the second time it was false. Using Fiddler, I found that when I press the button, it does the async postback (POST to the page) as you'd expect, when it gets the response, I see the RadGrid update, and then it immediately does a GET on the same page, hence the IsPostBack == false the second time. It only happens the first time after the page initially loads. After that I can click btnLoadHistory and only the expected postback occurs. Any ideas what's going on?
<telerik2012:RadAjaxManagerProxy ID="testAjaxManagerProxy" runat="server"> <AjaxSettings> <telerik2012:AjaxSetting AjaxControlID="btnLoadHistory"> <UpdatedControls> <telerik2012:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik2012:AjaxSetting> </AjaxSettings></telerik2012:RadAjaxManagerProxy> <asp:Panel ID="divSearch" runat="server" style="font: 9pt arial, tahoma"> <span>From </span> <telerik2012:RadDatePicker ID="dpStartDate" runat="server"> </telerik2012:RadDatePicker> <span>To </span> <telerik2012:RadDatePicker ID="dpEndDate" runat="server"> </telerik2012:RadDatePicker> <asp:Button ID="btnLoadHistory" runat="server" Text="Go" CausesValidation="False" Style="vertical-align: bottom" /> <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Invalid Date Range" ControlToCompare="dpEndDate" ControlToValidate="dpStartDate" Operator="LessThanEqual" Type="Date"></asp:CompareValidator> </asp:Panel> <telerik2012:RadGrid ID="RadGrid1" runat="server" ...This user control is on a SharePoint 2007 page layout & master page. When debugging, I noticed the first time btnLoadHistory is pressed, the Page_Load event was occurring twice. The first time IsPostBack was true, the second time it was false. Using Fiddler, I found that when I press the button, it does the async postback (POST to the page) as you'd expect, when it gets the response, I see the RadGrid update, and then it immediately does a GET on the same page, hence the IsPostBack == false the second time. It only happens the first time after the page initially loads. After that I can click btnLoadHistory and only the expected postback occurs. Any ideas what's going on?