I have a selection for an event history and when I make the selection and hit the search button the radgrid posts but when I hit next page button the radgrid disappears then when I hit the search button again the second page appears. I tried to add the radgrid to an update panel but it still does the same thing. Do I have something not set right? I added an ajaxmanager too but there is already one on the master default page. Thanks in advance.
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucEventHistory.ascx.cs" |
| Inherits="uc_mas_ucEventHistory" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
| <style type="text/css"> |
| .style1 |
| { |
| width: 114px; |
| } |
| </style> |
| Data from mastermind here, rules need to be defined by <b>BUSINESS</b> |
| <div id="EventHistoryContainer"> |
| <asp:Table runat="server" ID="Eventhistorytable" Width="593px" Style="vertical-align: top"> |
| <asp:TableRow> |
| <asp:TableCell ColumnSpan="4" HorizontalAlign="center" Style="border-bottom-style: double; |
| border-bottom-width: thin; border-bottom-color: Navy"> |
| <h3> |
| <asp:Label ID="LabelTitle" runat="server">Event history Selection</asp:Label></h3> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow Style="vertical-align: top; height: 25px;" VerticalAlign="top"> |
| <asp:TableCell CssClass="style1"> |
| <asp:Label ID="Label1" runat="server" Text="Start Date :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Office2007" Culture="English (United States)" |
| ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True"> |
| <DateInput ID="DateInput1" LabelCssClass="radLabelCss_Office2007" Skin="Office2007" |
| runat="server" CausesValidation="True"> |
| </DateInput> |
| <Calendar ID="Calendar1" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x" Skin="Office2007" runat="server"> |
| </Calendar> |
| <DatePopupButton runat="server"></DatePopupButton> |
| </telerik:RadDatePicker> |
| </asp:TableCell> |
| <asp:TableCell> |
| <asp:Label ID="Label2" runat="server" Text="Start Time :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| |
| <telerik:RadTimePicker ID="RadTimePicker1" runat="server" Culture="English (United States)" |
| Skin="Office2007" ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True" |
| DateInput-ValidationGroup="1"> |
| <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton> |
| <TimeView runat="server" CellSpacing="-1"> |
| </TimeView> |
| <TimePopupButton runat="server" CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton> |
| <DateInput runat="server" Width="" LabelCssClass="" CausesValidation="True" ValidationGroup="1"> |
| </DateInput> |
| </telerik:RadTimePicker> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow> |
| <asp:TableCell CssClass="style1"> |
| <asp:Label ID="Label3" runat="server" Text="End Date :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| <telerik:RadDatePicker ID="RadDatePicker2" runat="server" Skin="Office2007" Culture="English (United States)" |
| ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True" |
| DateInput-ValidationGroup="1"> |
| <DateInput ID="DateInput2" LabelCssClass="radLabelCss_Office2007" Skin="Office2007" |
| runat="server"> |
| </DateInput> |
| <Calendar ID="Calendar2" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x" Skin="Office2007" runat="server"> |
| </Calendar> |
| <DatePopupButton runat="server"></DatePopupButton> |
| </telerik:RadDatePicker> |
| </asp:TableCell> |
| <asp:TableCell> |
| <asp:Label ID="Label4" runat="server" Text="End Time :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| |
| <telerik:RadTimePicker ID="RadTimePicker2" runat="server" Culture="English (United States)" |
| Skin="Office2007" ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True" |
| DateInput-ValidationGroup="1"> |
| <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton> |
| <TimeView runat="server" CellSpacing="-1"> |
| </TimeView> |
| <TimePopupButton runat="server" CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton> |
| <DateInput runat="server" Width="" LabelCssClass="" CausesValidation="True" ValidationGroup="1"> |
| </DateInput> |
| </telerik:RadTimePicker> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Label runat="server" ID="lblMaxEvents" Text="Max Events to Return: "></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| <telerik:RadComboBox ID="rdcMaxEvents" runat="server" ValidationGroup="1" CausesValidation="True"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Selected="True" Text="make a selection" Value="(none)" /> |
| <telerik:RadComboBoxItem runat="server" Text="10" Value="10" /> |
| <telerik:RadComboBoxItem runat="server" Text="20" Value="20" /> |
| <telerik:RadComboBoxItem runat="server" Text="50" Value="50" /> |
| <telerik:RadComboBoxItem runat="server" Text="100" Value="100" /> |
| <telerik:RadComboBoxItem runat="server" Text="250" Value="250" /> |
| <telerik:RadComboBoxItem runat="server" Text="500" Value="500" /> |
| <telerik:RadComboBoxItem runat="server" Text="1000" Value="1000" /> |
| </Items> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </telerik:RadComboBox> |
| </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Label runat="server" ID="lblGroupBy" Text="Group By Incident? "></asp:Label></asp:TableCell><asp:TableCell> |
| <asp:RadioButtonList ID="rblGroupBy" runat="server" RepeatDirection="Horizontal" |
| RepeatLayout="Flow"> |
| <asp:ListItem>Yes</asp:ListItem> |
| <asp:ListItem Selected="True">No</asp:ListItem> |
| </asp:RadioButtonList> |
| </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Label runat="server" ID="lblEntireSite" Text="Entire Site? "></asp:Label></asp:TableCell><asp:TableCell> |
| <asp:RadioButtonList ID="rblEntireSite" runat="server" RepeatDirection="Horizontal" |
| RepeatLayout="Flow"> |
| <asp:ListItem>Yes</asp:ListItem> |
| <asp:ListItem Selected="True">No</asp:ListItem> |
| </asp:RadioButtonList> |
| </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /> |
| </asp:TableCell><asp:TableCell> </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow> |
| <asp:TableCell ColumnSpan="4"> |
| <asp:Label runat="server" ID="lblError" Text="" Font-Bold="True" ForeColor="Red"></asp:Label></asp:TableCell> |
| </asp:TableRow> |
| </asp:Table> |
| <asp:UpdatePanel ID="UpdatePanel2" runat="server"> |
| <ContentTemplate> |
| <table> |
| <tr> |
| <td> |
| <telerik:RadGrid ID="RadGrid2" runat="server" Visible="True" Skin="Vista" AllowPaging="True" |
| AutoGenerateColumns="False" AllowFilteringByColumn="True" PageSize="5" BorderColor="Black" |
| BorderStyle="Solid" OnPageIndexChanged="RadGrid2_PageIndexChanged"> |
| <HeaderContextMenu EnableTheming="True" Skin="Vista"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </HeaderContextMenu> |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText="additional_info" UniqueName="additional_info" |
| DataField="additional_info"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="alarminc_no" UniqueName="alarminc_no" DataField="alarminc_no"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="event_date" UniqueName="event_date" DataField="event_date"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="event_id" UniqueName="event_id" DataField="event_id"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="phone" UniqueName="phone" DataField="phone"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="system_no" UniqueName="system_no" DataField="system_no"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True" Skin="Vista"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| </table> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </div> |