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

NestedViewTemplate resizing parent grid columns

2 Answers 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 22 Sep 2010, 09:54 PM
I'm having a few issues with the radGrid and the NestedViewTemplate.
The most pressing now is that when I expand to show my child panel
with grids in it the parent grid is resizing. I'm sure this is hard
to explain. I will attach a screen shot of the grids. I need  to
know how to keep the parent grid columns from growing and shrinking
with the child grids.



<telerik:RadGrid Width="655px" Height="540px" style="margin:15px 5px 5px 5px;" ID="GridAudit" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False" OnPreRender="GridAudit_PreRender" OnItemCommand="GridAudit_ItemCommand" OnItemCreated="GridAudit_ItemCreated">
<ClientSettings>
<ClientEvents OnHierarchyExpanding="GridAudit_HierarchyExpanding" />
<Scrolling AllowScroll="true" />
</ClientSettings>
<MasterTableView HierarchyLoadMode="Client" ClientDataKeyNames="AuditId">
    <Columns>
    <telerik:GridBoundColumn DataField="AuditId" UniqueName="AuditId" Visible="false"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EntryId" UniqueName="EntryId" Visible="false"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Company Name" HeaderButtonType="TextButton" DataField="CompanyName" UniqueName="CompanyName" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridDateTimeColumn HeaderText="Date Assigned" HeaderButtonType="TextButton" DataField="DateAssigned" UniqueName="DateAssigned" DataFormatString="{0:MM/dd/yyyy h:mm tt}" ItemStyle-HorizontalAlign="Left"></telerik:GridDateTimeColumn>
        <telerik:GridBoundColumn HeaderText="Assigned To" HeaderButtonType="TextButton" DataField="AssignedToFullName" UniqueName="AssignedToFullName" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridDateTimeColumn HeaderText="Date Closed" HeaderButtonType="TextButton" DataField="DateClosed" UniqueName="DateClosed" DataFormatString="{0:MM/dd/yyyy h:mm tt}" ItemStyle-HorizontalAlign="Left"></telerik:GridDateTimeColumn>
        <telerik:GridBoundColumn HeaderText="Closed By" HeaderButtonType="TextButton" DataField="ClosedByFullName" UniqueName="ClosedByFullName" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Disposition" HeaderButtonType="TextButton" DataField="DispositionDescription" UniqueName="DispositionDescription" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Status" HeaderButtonType="TextButton" DataField="StatusDescription" UniqueName="StatusDescription" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>                           
        </Columns>
    <NestedViewTemplate>
        <asp:Panel runat="server" ID="InnerContainer" Visible="true">
          <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" skin="PriorityPayment" EnableEmbeddedSkins="false" SelectedIndex="0">
    <Tabs>
        <telerik:RadTab runat="server" Text="Capture Points" PageViewID="PVCapturePoints"></telerik:RadTab>
        <telerik:RadTab runat="server" Text="Contacts" PageViewID="PVContacts">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Notes" PageViewID="PVNotes">
        </telerik:RadTab>
    <telerik:RadTab runat="server" Text="Appointments" PageViewID="PVSchedules">
        </telerik:RadTab>
    </Tabs>
 </telerik:RadTabStrip>
 <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0">
 <telerik:RadPageView runat="server" ID="PVCapturePoints">
    <telerik:RadGrid runat="server" ID="GridCapturePoints" AllowSorting="true" OnDataBinding="GridCapturePoints_DataBinding" Height="240px">
        <MasterTableView>
        </MasterTableView>
    </telerik:RadGrid>
 </telerik:RadPageView>
 <telerik:RadPageView runat="server" ID="PVContacts">
     <telerik:RadGrid runat="server" ID="GridContacts" AllowSorting="true" OnDataBinding="GridContacts_DataBinding" Height="240px">
          <MasterTableView>
          </MasterTableView>
     </telerik:RadGrid>
 </telerik:RadPageView>
 <telerik:RadPageView runat="server" ID="PVNotes">
     <telerik:RadGrid runat="server" ID="GridNotes" AllowSorting="true" OnDataBinding="GridNotes_DataBinding" Height="240px">
    <MasterTableView>
        </MasterTableView>
     </telerik:RadGrid>
 </telerik:RadPageView>
 <telerik:RadPageView runat="server" ID="PVSchedules">
     <telerik:RadGrid runat="server" ID="GridSchedules" AllowSorting="true" OnDataBinding="GridSchedules_DataBinding" Height="240px">
    <MasterTableView>
    </MasterTableView>
     </telerik:RadGrid>
 </telerik:RadPageView>
 </telerik:RadMultiPage>
 </asp:Panel>
 </NestedViewTemplate>
 </MasterTableView>
 </telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Shane
Top achievements
Rank 1
answered on 23 Sep 2010, 04:54 PM
anyone?
I have tried to wrap the nested grids in a div and still no go.
0
Shane
Top achievements
Rank 1
answered on 24 Sep 2010, 05:36 PM
fixed. Wrapped the grid in a div and set scrolling to true.
Tags
Grid
Asked by
Shane
Top achievements
Rank 1
Answers by
Shane
Top achievements
Rank 1
Share this question
or