This is a migrated thread and some comments may be shown as answers.

Set PageSize in skin file

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sumanth
Top achievements
Rank 1
Sumanth asked on 08 Mar 2011, 09:07 AM
Hi Sir / Madam,

I am using Hierarchical grid to display Master & Details information. I want page size as 10 and 5 respectively in MasterTableView and DetailTables. For uniqueness in entire application i would like to go with asp.net's skin file. I have written below listed code in Skin1.skin file

<telerik:RadGrid runat="server"  >
<MasterTableView  PageSize="10">
</MasterTableView>
</telerik:RadGrid>
<telerik:GridTableView  Width="100%" PageSize="5" runat="server">
</telerik:GridTableView>

But end result was not met my expectation. Both Master and Child tables displays 5 records per page.

If I use same settings in .aspx page instead of skin file, results are displayed as expected.

Could any one please help me in this regard. Thanks in advance.

Thanks,
Sumanth

 

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 Mar 2011, 08:09 AM
Hello Sumanth,

The GridTableView is the general object that holds both the master and the detail tables so it is no wonder that page size of 5 is set for both. I am afraid your requirement cannot be achieved through themes. You need to code around it.

Hope it helps. 

Greetings,
Tsvetoslav
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Sumanth
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or