Hi Telerik Team
I am facing an issue with Detail table view page size change event. In My design I have one MasterTableView and three detail table view as coded below.
<telerik:RadGrid ID="radGrid" AllowFilteringByColumn="true" AutoGenerateColumns="false" runat="server" >
<MasterTableView Name="masterTableView" runat="server" HierarchyLoadMode="ServerOnDemand">
<CommandItemTemplate>
<table width="100%" cellpadding="3px">
<tr >
<td align="center">
<div id="divCommandButtons" runat="server">
<asp:LinkButton ID="LinkButton1" Text="Button" Visible="false" CssClass="black-button" runat="server" />
<img id="spacer1" f" border="0" heigth="5" width="0" runat="server"/>
</div>
</td>
</tr>
</table>
</CommandItemTemplate>
<CommandItemStyle HorizontalAlign="Center" Wrap="false" Height="30"/>
<PagerStyle CssClass="rgPager" />
<DetailTables >
<telerik:GridTableView Name="detailTableL1" Width="100%" runat="server" HierarchyLoadMode="ServerOnDemand" >
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="" MasterKeyField="" />
</ParentTableRelation>
<CommandItemStyle CssClass="GridCommand" />
<CommandItemTemplate>
<table width="100%" cellpadding="3px">
<tr>
<td align="center" >
</td>
</tr>
</table>
</CommandItemTemplate>
<PagerStyle CssClass="rgPager" />
<EditFormSettings EditColumn-UpdateText="<span>Save</span>" EditColumn-InsertText="<span>Save</span>" EditColumn-CancelText="<span>Cancel</span>"/>
<AlternatingItemStyle BackColor="#F3F6F9" />
and the issue I am facing is with ChanePageSize in Detail Table View. For Master table view when I change its page size its works for me. Also when i tried to move page by page in detail table view it works but when i change page size say 10 to 20 in detail table it not working.
The way i set pager template and size from CS page.
masterView.SetPaging(GridPagerMode.NextPrevAndNumeric);
public void SetPaging(GridPagerMode pagerMode, int pageSize)
{
this.GridTableView.AllowPaging = true;
this.GridTableView.PagerStyle.Mode = pagerMode;
this.gridTableView.PagerStyle.AlwaysVisible = true;
}
Thanks..
I am facing an issue with Detail table view page size change event. In My design I have one MasterTableView and three detail table view as coded below.
<telerik:RadGrid ID="radGrid" AllowFilteringByColumn="true" AutoGenerateColumns="false" runat="server" >
<MasterTableView Name="masterTableView" runat="server" HierarchyLoadMode="ServerOnDemand">
<CommandItemTemplate>
<table width="100%" cellpadding="3px">
<tr >
<td align="center">
<div id="divCommandButtons" runat="server">
<asp:LinkButton ID="LinkButton1" Text="Button" Visible="false" CssClass="black-button" runat="server" />
<img id="spacer1" f" border="0" heigth="5" width="0" runat="server"/>
</div>
</td>
</tr>
</table>
</CommandItemTemplate>
<CommandItemStyle HorizontalAlign="Center" Wrap="false" Height="30"/>
<PagerStyle CssClass="rgPager" />
<DetailTables >
<telerik:GridTableView Name="detailTableL1" Width="100%" runat="server" HierarchyLoadMode="ServerOnDemand" >
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="" MasterKeyField="" />
</ParentTableRelation>
<CommandItemStyle CssClass="GridCommand" />
<CommandItemTemplate>
<table width="100%" cellpadding="3px">
<tr>
<td align="center" >
</td>
</tr>
</table>
</CommandItemTemplate>
<PagerStyle CssClass="rgPager" />
<EditFormSettings EditColumn-UpdateText="<span>Save</span>" EditColumn-InsertText="<span>Save</span>" EditColumn-CancelText="<span>Cancel</span>"/>
<AlternatingItemStyle BackColor="#F3F6F9" />
and the issue I am facing is with ChanePageSize in Detail Table View. For Master table view when I change its page size its works for me. Also when i tried to move page by page in detail table view it works but when i change page size say 10 to 20 in detail table it not working.
The way i set pager template and size from CS page.
masterView.SetPaging(GridPagerMode.NextPrevAndNumeric);
public void SetPaging(GridPagerMode pagerMode, int pageSize)
{
this.GridTableView.AllowPaging = true;
this.GridTableView.PagerStyle.Mode = pagerMode;
this.gridTableView.PagerStyle.AlwaysVisible = true;
}
Thanks..