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

RadGrid does not expand

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Harvey
Top achievements
Rank 1
Harvey asked on 12 Jun 2014, 06:00 PM
Could you tell me why my code for RadGrid does not expand. It is very small but it has data in it. The only way I can expand it is to use with a meta tag and emulate IE7, but it is not what I want. 


<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Grid.aspx.vb" Inherits="Grid.Grid" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
    <div>
    
    </div>
        <telerik:RadGrid runat="server" AutoGenerateColumns="False"
                    GridLines="None" Skin="Outlook" Height="95%" Width="98%" DataSourceID="SqlDataSource1">
                    <ClientSettings>
                        <Scrolling AllowScroll="False" UseStaticHeaders="True" ScrollHeight="200px" />
                    </ClientSettings>
                    <MasterTableView  TableLayout="Auto" Width="94%" DataSourceID="SqlDataSource1">
                        <RowIndicatorColumn Visible="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="False" Resizable="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="id" HeaderText="id" UniqueName="id" DataType="System.Int32" FilterControlAltText="Filter id column" SortExpression="id" >
<ColumnValidationSettings>
<ModelErrorMessage Text=""></ModelErrorMessage>
</ColumnValidationSettings>

                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="masterBatchNo" FilterControlAltText="Filter masterBatchNo column" HeaderText="masterBatchNo" SortExpression="masterBatchNo" UniqueName="masterBatchNo">
                                <ColumnValidationSettings>
                                    <ModelErrorMessage Text="" />
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="processStage" FilterControlAltText="Filter processStage column" HeaderText="processStage" SortExpression="processStage" UniqueName="processStage">
                                <ColumnValidationSettings>
                                    <ModelErrorMessage Text="" />
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings>
                            <PopUpSettings ScrollBars="None"></PopUpSettings>
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                   
                </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:projectCopyConnectionString %>" SelectCommand="SELECT [id], [masterBatchNo], [processStage] FROM [PV_Batch]"></asp:SqlDataSource>
    </form>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Jun 2014, 07:28 AM
Hi Harvey,

I'm not clear about your requirement, I donot see anything in your code to Expand. Please check the below demos to see Expand in grouping and hierarchy grids. Elaborate on your requirement.

Hierarchy Grid
Grid - Grouping

Thanks,
Princy
Tags
Grid
Asked by
Harvey
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or