RadGrid expands Columns on RowSelect

Thread is closed for posting
3 posts, 0 answers
  1. Rektile
    Rektile avatar
    3 posts
    Member since:
    Jan 2013

    Posted 16 Jan 2013 Link to this post

    Hi, 

    Have a RadGrid inside a RadPane. Have also enabled RowSelect service. When I preview the page, and on selecting the row it expands.
    How can I stop it from expanding. Have turned on AutoPostBack, it also behaves as a master row to a detail grid.

    Part of the Code:

    <telerik:RadPane ID="RadPaneLocations" runat="server" Height="15%" MinHeight="15" MinWidth="15" Scrolling="None">
                            <asp:Label ID="LabelLocations" runat="server" Text="Locations: " BackColor="#EFEFF2" Width="100%" Height="18px"></asp:Label>
                            <telerik:RadGrid ID="RadGridLocationList" runat="server" CellSpacing="0" GridLines="None" DataSourceID="ODSLocationList" AllowSorting="True" Skin="Default">
                                <ClientSettings EnablePostBackOnRowClick="True">
                                    <Selecting AllowRowSelect="True" />
                                    <Scrolling UseStaticHeaders="true" FrozenColumnsCount="1" ScrollHeight="100" AllowScroll="True"></Scrolling>
                                </ClientSettings>
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="lead_id,location_id" DataSourceID="ODSLocationList">
                                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="lead_id" DataType="System.Int32" FilterControlAltText="Filter lead_id column" HeaderText="lead_id" ReadOnly="True" SortExpression="lead_id" UniqueName="lead_id" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="location_id" DataType="System.Int32" FilterControlAltText="Filter location_id column" HeaderText="location_id" ReadOnly="True" SortExpression="location_id" UniqueName="location_id" Visible="false">
                                        </telerik:GridBoundColumn>




    Any help is appreciated.
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 21 Jan 2013 Link to this post

    Hello Satish,

    Using the provided code I have created a sample project but was unable to reproduce the described behavior. Could you please elaborate more on your scenario? If you can provide us with a step-by-step explanation on how to reproduce the problem we would be able to determine the root cause of the problem. Attached is the project which I have tested.

    Regards,
    Angel Petrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rektile
    Rektile avatar
    3 posts
    Member since:
    Jan 2013

    Posted 28 Jan 2013 Link to this post

    Thanks for you reply.
    Was using Frozen Columns, after setting the headertext/itemtext widths, it worked fine.
Back to Top