Hi,
i have footer control in master page,after the content placeholder.Then i am having radgrid with gridtemplatecolumn for creating image gallery.Now i am setting pagesize=6,but i am having 7 images .At grid-first page 6 images are dispalying,in second page 1-image is displaying,now what happen is,my footer control will comes within the grid.There is nothing problem in my other Radgrids.Because that grids retrieving datas only.This is the design source for my grid which is haiving problem.and not only footer control,whatever the control placing after the rad grid,it shows the same issues as i mentioned above.
<telerik:RadGrid ID="rgridProduct" runat="server" DataSourceID="dsProduct" GridLines="None"
AllowPaging="true" AllowSorting="true" OnItemDataBound="rgridProduct_ItemDataBound"
Skin="Office2007" Width="900px" EnableEmbeddedSkins="false">
<HeaderContextMenu EnableTheming="True">
<CollapseAnimation Duration="200" Type="OutQuint" />
</HeaderContextMenu>
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView DataSourceID="dsProduct" AutoGenerateColumns="False" DataKeyNames="ProductId"
TableLayout="Fixed" PageSize="6">
<Columns>
<telerik:GridBoundColumn DataField="ProductID" Display="false" DataType="System.Int32"
HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="ImageColumn">
<ItemTemplate>
<%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
<asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>'
runat="server" Width="250px" Height="150px">
<div class="view_rightgrid">
<br />
<asp:Label ID="lblName" runat="server"><%# Eval("ProductName")%></asp:Label>
<br />
<asp:HyperLink ID="hlPreview" runat="server" ToolTip="View" Text="Preview" NavigateUrl='<%# "MarketerViewProduct.aspx?ProductID="+Eval("ProductID")%>'></asp:HyperLink>
<br />
<asp:HyperLink ID="HyperLink1" runat="server" ToolTip="View" Text="Edit" NavigateUrl='<%# "Product.aspx?ProductID="+Eval("ProductID")+"&mode=edit" %>'></asp:HyperLink>
</div>
<asp:Image ImageUrl='<%# String.Format(System.Configuration.ConfigurationManager.AppSettings["virtualPath"].ToString() + "{0}", DataBinder.Eval(Container.DataItem, "PrimaryImage")) %>'
ID="smallImage" runat="server" AlternateText="" Height="100px" />
<asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" Text="Details"></asp:HyperLink>
</asp:Panel>
<%# (((GridItem)Container).ItemIndex != (((GridItem)Container).OwnerTableView.PageSize - 1))? "<table style='display:none;'><tr><td>" : "" %>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<FilterMenu EnableTheming="True">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>
Thanks
santhose
i have footer control in master page,after the content placeholder.Then i am having radgrid with gridtemplatecolumn for creating image gallery.Now i am setting pagesize=6,but i am having 7 images .At grid-first page 6 images are dispalying,in second page 1-image is displaying,now what happen is,my footer control will comes within the grid.There is nothing problem in my other Radgrids.Because that grids retrieving datas only.This is the design source for my grid which is haiving problem.and not only footer control,whatever the control placing after the rad grid,it shows the same issues as i mentioned above.
<telerik:RadGrid ID="rgridProduct" runat="server" DataSourceID="dsProduct" GridLines="None"
AllowPaging="true" AllowSorting="true" OnItemDataBound="rgridProduct_ItemDataBound"
Skin="Office2007" Width="900px" EnableEmbeddedSkins="false">
<HeaderContextMenu EnableTheming="True">
<CollapseAnimation Duration="200" Type="OutQuint" />
</HeaderContextMenu>
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView DataSourceID="dsProduct" AutoGenerateColumns="False" DataKeyNames="ProductId"
TableLayout="Fixed" PageSize="6">
<Columns>
<telerik:GridBoundColumn DataField="ProductID" Display="false" DataType="System.Int32"
HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="ImageColumn">
<ItemTemplate>
<%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
<asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>'
runat="server" Width="250px" Height="150px">
<div class="view_rightgrid">
<br />
<asp:Label ID="lblName" runat="server"><%# Eval("ProductName")%></asp:Label>
<br />
<asp:HyperLink ID="hlPreview" runat="server" ToolTip="View" Text="Preview" NavigateUrl='<%# "MarketerViewProduct.aspx?ProductID="+Eval("ProductID")%>'></asp:HyperLink>
<br />
<asp:HyperLink ID="HyperLink1" runat="server" ToolTip="View" Text="Edit" NavigateUrl='<%# "Product.aspx?ProductID="+Eval("ProductID")+"&mode=edit" %>'></asp:HyperLink>
</div>
<asp:Image ImageUrl='<%# String.Format(System.Configuration.ConfigurationManager.AppSettings["virtualPath"].ToString() + "{0}", DataBinder.Eval(Container.DataItem, "PrimaryImage")) %>'
ID="smallImage" runat="server" AlternateText="" Height="100px" />
<asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" Text="Details"></asp:HyperLink>
</asp:Panel>
<%# (((GridItem)Container).ItemIndex != (((GridItem)Container).OwnerTableView.PageSize - 1))? "<table style='display:none;'><tr><td>" : "" %>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<FilterMenu EnableTheming="True">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>
Thanks
santhose