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

RadGrid expands Columns on RowSelect

2 Answers 142 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Rektile
Top achievements
Rank 1
Rektile asked on 16 Jan 2013, 05:55 PM
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 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 21 Jan 2013, 09:59 AM
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.
0
Rektile
Top achievements
Rank 1
answered on 28 Jan 2013, 04:57 PM
Thanks for you reply.
Was using Frozen Columns, after setting the headertext/itemtext widths, it worked fine.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Rektile
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Rektile
Top achievements
Rank 1
Share this question
or