Hi,
I have a grid that displays a list of items that when clicked on populates another section with data using the AjaxManager. This works great, the problem is that when I try to incorporate paging of the grid after I select one item it won't let me select another. To incorporate paging I included the grid control in the "UpdatedControls" area of the AjaxManager. When I remove it from the manager my row select functionality returns but it will no longer page my grid data. Below is my sample code, any help would be appreciated.
Thanks,
I have a grid that displays a list of items that when clicked on populates another section with data using the AjaxManager. This works great, the problem is that when I try to incorporate paging of the grid after I select one item it won't let me select another. To incorporate paging I included the grid control in the "UpdatedControls" area of the AjaxManager. When I remove it from the manager my row select functionality returns but it will no longer page my grid data. Below is my sample code, any help would be appreciated.
Thanks,
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="blogPostGrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rptImages"></telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="blogPostGrid"></telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="litTitle"></telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="litDate"></telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="litContent"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div class="blogBox"> <div class="blogContent"> <div class="blogTitle"><asp:Literal ID="litTitle" runat="server"></asp:Literal></div> <div class="blogDate"><asp:Literal ID="litDate" runat="server"></asp:Literal></div> <div class="blogText blogTextLess"><asp:Literal ID="litContent" runat="server"></asp:Literal></div> <div id="divImages" runat="server" class="thumbnails"> <asp:Repeater ID="rptImages" runat="server"> <HeaderTemplate> <h2>Blog Post Images</h2> </HeaderTemplate> <ItemTemplate> <div class="thumbnail"> <img src="<%# DataBinder.Eval(Container.DataItem, "Url").ToString().Replace("~","") %>.tmb?width=75&height=75&decreaseOnly=true"/></div> </ItemTemplate> </asp:Repeater> <div class="clearFix"></div> </div> <div id="div1" runat="server"> <h2>Recent Blog Posts</h2> <telerik:RadGrid ID="blogPostGrid" OnNeedDataSource="blogPostGrid_NeedDataSource" OnItemCommand="blogPostGrid_ItemCommand" AllowPaging="true" runat="server" AutoGenerateColumns="False" GridLines="None" ShowHeader="False" BorderStyle="None"> <PagerStyle Mode="NumericPages"></PagerStyle> <MasterTableView DataKeyNames="ID" GridLines="None" PageSize="5"> <RowIndicatorColumn Visible="False"></RowIndicatorColumn> <ExpandCollapseColumn Visible="False" Resizable="False"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Title" HeaderText="Title"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Date" HeaderText="Date"></telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="true"> <Selecting AllowRowSelect="true" /> </ClientSettings> </telerik:RadGrid> </div> </div> </div> </div>protected void blogPostGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { BindBlogPosts(); } protected void blogPostGrid_ItemCommand(object source, GridCommandEventArgs e) { if(e.CommandName == "RowClick") LoadPlayerBlogByID(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString()); }