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

RadGrid inside RadSplitter inside RadMultiPage NOT Expanding !!!

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lorenzo
Top achievements
Rank 1
Lorenzo asked on 20 Jul 2010, 10:01 AM
Hi,
the title might be a little confuse, but it is exactly my problem.

I have a RadMultiPage (with RadTabStrip, but I don't think that matters) with PageView. Inside each PageView I have a RadSplitter with two RadPanes and inside one of the two RadPanes a RadGrid. When page loads the Grid remains..."compressed" in the sense that the width of the grid does not get stretched to 100%.
I've tried to put a third PageView with just background color to be sure that the problem is RadGrid that does not expand and not RadPane. The test says that RadPane is ok and that the Grid remains "not stretched".
I'm attaching a sample below.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TEST.aspx.vb" Inherits="TEST" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <style type="text/css">
    html, body, form
    {
        height:100%;
        border:0px;
        margin:0px;
        }
         
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
     
    <telerik:RadSplitter ID="RadSplitter2" runat="server" Width="100%" Height="100%" Orientation="Horizontal">
     
        <telerik:RadPane ID="RadPane3" runat="server" Width="100%" Height="26px">
         
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab Text="First" Value="First" PageViewID="PV0"></telerik:RadTab>
                    <telerik:RadTab Text="Second" Value="Second" PageViewID="PV1"></telerik:RadTab>
                    <telerik:RadTab Text="Third" Value="Third" PageViewID="PV2"></telerik:RadTab>
                   
                </Tabs>
            </telerik:RadTabStrip>
         
        </telerik:RadPane>
     
        <telerik:RadSplitBar ID="RadSplitBar2" runat="server" Visible="false"></telerik:RadSplitBar>
         
        <telerik:RadPane ID="RadPane4" runat="server" Width="100%" Height="100%">
     
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Width="100%" Height="100%">
             
                <telerik:RadPageView ID="PV0" runat="server" Width="100%" Height="100%">
                 
                    <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="Horizontal">
                     
                        <telerik:RadPane ID="RadPane1" runat="server" Height="32px" Width="100%">
                            Top PV0
                        </telerik:RadPane>
                         
                        <telerik:RadSplitBar ID="RadSplitBar1" runat="server" Visible="false"></telerik:RadSplitBar>
                         
                        <telerik:RadPane ID="RadPane2" runat="server" Width="100%" Height="100%">
                         
                            <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SDS0"
                                GridLines="None" Height="100%" Width="100%" style="border:0;outline:none;">
                                <MasterTableView AutoGenerateColumns="False" DataSourceID="SDS0" style="border:0;outline:none;">
                                    <RowIndicatorColumn>
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn>
                                        <HeaderStyle Width="20px" />
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Column1" DataType="System.Int32"
                                            HeaderText="Column1" ReadOnly="True" SortExpression="Column1"
                                            UniqueName="Column1">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                             
                            <asp:SqlDataSource ID="SDS0" runat="server"
                                SelectCommand="SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4"
                                ConnectionString="<%$ ConnectionStrings:DBConn %>">
                            </asp:SqlDataSource
                                   
                        </telerik:RadPane>
                         
                    </telerik:RadSplitter>
                     
                     
                </telerik:RadPageView>
                     
                <telerik:RadPageView ID="PV1" runat="server">
                 
                    <telerik:RadSplitter ID="RadSplitter3" runat="server" Width="100%" Height="100%" Orientation="Horizontal">
                         
                            <telerik:RadPane ID="RadPane5" runat="server" Height="32px" Width="100%">
                                Top PV1
                            </telerik:RadPane>
                             
                            <telerik:RadSplitBar ID="RadSplitBar3" runat="server" Visible="false"></telerik:RadSplitBar>
                             
                            <telerik:RadPane ID="RadPane6" runat="server" Width="100%" Height="100%">
                             
                                <telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="SDS1"
                                    GridLines="None" Height="100%" Width="100%" style="border:0;outline:none;">
                                    <MasterTableView AutoGenerateColumns="False" DataSourceID="SDS1" style="border:0;outline:none;">
                                        <RowIndicatorColumn>
                                            <HeaderStyle Width="20px" />
                                        </RowIndicatorColumn>
                                        <ExpandCollapseColumn>
                                            <HeaderStyle Width="20px" />
                                        </ExpandCollapseColumn>
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="Column1" DataType="System.Int32"
                                                HeaderText="Column1" ReadOnly="True" SortExpression="Column1"
                                                UniqueName="Column1">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                                 
                                <asp:SqlDataSource ID="SDS1" runat="server"
                                    SelectCommand="SELECT 11 UNION SELECT 12 UNION SELECT 13 UNION SELECT 14"
                                    ConnectionString="<%$ ConnectionStrings:DBConn %>">
                                </asp:SqlDataSource
                                       
                            </telerik:RadPane>
                             
                        </telerik:RadSplitter>
                         
                    </telerik:RadPageView>
                     
                    <telerik:RadPageView runat="server" ID="PV2" BackColor="Red" Width="100%" Height="100%"></telerik:RadPageView>
                               
            </telerik:RadMultiPage>   
        </telerik:RadPane>
         
    </telerik:RadSplitter>
     
     
     
     
    </form>
</body>
</html>

I've put all the code needed, including DataSources in the page itself so there is no code behind.
I haven't been able to figure out the problem, but my entire solution is based on this schema and I'm desperately looking for a solution.

Many thanks in advance.

Lorenzo 

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 22 Jul 2010, 01:56 PM
Hi Lorenzo,

Can you please set the value of ResizeWithParentPane of nested splitters to false and see if this makes any difference? Also I have noticed that the PageView with ID PV1 does not have Width nor Height set, please correct this too.

Kind regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Lorenzo
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or