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

RadGrid DetailsTable Width

3 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chetan
Top achievements
Rank 1
Chetan asked on 06 Dec 2011, 10:01 AM
Hello

I am using RadGrid with HierarchyLoadMode="Client" and have
 <telerik:RadGrid>

 <MasterTableView Name="ListGrid" AutoGenerateColumns="false" AllowMultiColumnSorting="false"
                        AllowAutomaticDeletes="false" CommandItemDisplay="Top" HierarchyLoadMode="Client"
                        NoDetailRecordsText="No Lists to display" ClientDataKeyNames="ListID" Width="100%">
                        <DetailTables>
<telerik:GridTableView Name="ListChildGrid" Width="100%" runat="server" EnableNoRecordsTemplate="true"
                              HierarchyLoadMode="Client  AllowSorting="true" AllowPaging="true" DataKeyNames="ListID" ClientDataKeyNames="ListID" AutoGenerateColumns="false" PageSize="5" CommandItemDisplay="Top">
...
...
</telerik:GridTableView>
</DetailTables>
</MasterTableView>
 </telerik:RadGrid>

the Width of the Inner grid shows one column less than the parent grid

have attached a image of so and by the way i am using telerik version 2011.2.920.40

please suggest me an solution for so on client side.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Dec 2011, 11:16 AM
Hello Chetan,

This is not the expected behavior of RadGrid. Check the following demo which implements the same.
Grid / Autogenerate Hierarchy

Thanks,
Princy.
0
Chetan
Top achievements
Rank 1
answered on 06 Dec 2011, 11:56 AM
Hello Princy

Thanks for the reply I have gone through all these pages suggested
on my different project binding is on server side and works fine

but while binding on client side it behaves the way I stated the problem.

Can you please guide me to a good solution.

Please let me know if any other information needed to help you to find a solution. also i am using the latest telerik version.

A bit more discription
when digging through IE Developer tool and navigate to the detail table it shows the colspan="6" where as it should be 7 compared to the parent Grid. from where can i set this value.


Thanks
Chetan
0
Chetan
Top achievements
Rank 1
answered on 06 Dec 2011, 01:19 PM
Hello Princy

Thanks for every thing I have nailed it :)   Bingooo...

the problem was in parent grid
where in one GridBoundColumn I had set Display="false" where as then I changed it to Visible="false" and it worked fine now it takes colspan="7" as expected.

thanks for everything I really appreciated.
Chetan K.
Tags
Grid
Asked by
Chetan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Chetan
Top achievements
Rank 1
Share this question
or