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

RadGrid Multicolumn header context menu show/hide breaks filter row

3 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 01 Nov 2013, 08:40 PM
Hi there,

When I click to show/hide a column from the context menu with a multicolumn header the whole grid gets out whack due to the filter row ending up on the same row as the column headers (see pictures of before (Normal.png) and after (one_column_removed.png)). Any ideas why this is happening?


Here is my grid code:

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="True" AllowColumnHide="False">
	<Selecting AllowRowSelect="False" />
	<Resizing AllowColumnResize="True" AllowResizeToFit="True" ResizeGridOnColumnResize="False" />
	<Scrolling AllowScroll="True" UseStaticHeaders="True" />
	<ClientMessages DragToGroupOrReorder="Click the Header to Sort; Drag to Reorder; Right Click for Context Menu" />
</ClientSettings>

...

<
ColumnGroups>
<telerik:GridColumnGroup HeaderText="MHO Portal Access" Name="User" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
<telerik:GridColumnGroup HeaderText="Census Tract Exclusions" Name="CT" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
<telerik:GridColumnGroup HeaderText="Rental Listings" Name="Rental" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
<telerik:GridColumnGroup HeaderText="Real Estate Professionals" Name="REP" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
</ColumnGroups>
 
<Columns>
<telerik:GridBoundColumn DataField="MHA" HeaderText="MHA" SortExpression="MHA" UniqueName="MHA" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" FilterControlWidth="75px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MHA_MHO_ID" HeaderText="MHA_MHO_ID" SortExpression="MHA_MHO_ID" UniqueName="MHA_MHO_ID" Visible="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Service_Name" FilterControlAltText="Filter Service_Name column" HeaderTooltip="Service" HeaderText="Service" SortExpression="Service_Name" UniqueName="Service_Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" FilterControlWidth="75px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Is_Primary" FilterControlAltText="Filter Is_Primary column" HeaderTooltip="Role" HeaderText="Role" SortExpression="Is_Primary" UniqueName="Is_Primary" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" FilterControlWidth="75px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MHO_Name" FilterControlAltText="Filter MHO_Name column" HeaderTooltip="MHO Name" HeaderText="MHO Name" SortExpression="MHO_Name" UniqueName="MHO_Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" FilterControlWidth="75px"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="POC" HeaderText="POC" SortExpression="POC" UniqueName="POC" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" Display="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" Display="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Phone_Number" HeaderText="Phone" SortExpression="Phone_Number" UniqueName="Phone_Number" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" Display="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Email" HeaderText="Email" SortExpression="Email" UniqueName="Email" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False" Display="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="First_Login" HeaderText="First Login" ColumnGroupName="User" SortExpression="First_Login" UniqueName="First_Login" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Last_Login" HeaderText="Last Login" ColumnGroupName="User" SortExpression="Last_Login" UniqueName="Last_Login" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Submission" HeaderText="Submit" ColumnGroupName="CT" SortExpression="CT_Submission" UniqueName="CT_Submission" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Total" HeaderText="Total" ColumnGroupName="CT" SortExpression="CT_Total" UniqueName="CT_Total" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Included" HeaderText="In." ColumnGroupName="CT" SortExpression="CT_Included" UniqueName="CT_Included" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Excluded" HeaderText="Ex." ColumnGroupName="CT" SortExpression="CT_Excluded" UniqueName="CT_Excluded" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Neutral" HeaderText="NA" ColumnGroupName="CT" SortExpression="CT_Neutral" UniqueName="CT_Neutral" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Percent_Excluded" HeaderText="% Ex" ColumnGroupName="CT" SortExpression="CT_Percent_Excluded" UniqueName="CT_Percent_Excluded" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CT_Percent_Updated" HeaderText="% Updated" ColumnGroupName="CT" SortExpression="CT_Percent_Updated" UniqueName="CT_Percent_Updated" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Rental_Submission" HeaderText="Submit" ColumnGroupName="Rental" SortExpression="Rental_Submission" UniqueName="Rental_Submission" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Rental_Total" HeaderText="Total" ColumnGroupName="Rental" SortExpression="Rental_Total" UniqueName="Rental_Total" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Rental_Current" HeaderText="Current" ColumnGroupName="Rental" SortExpression="Rental_Current" UniqueName="Rental_Current" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="REP_Submission" HeaderText="Submit" ColumnGroupName="REP" SortExpression="REP_Submission" UniqueName="REP_Submission" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="REP_Total" HeaderText="Total" ColumnGroupName="REP" SortExpression="REP_Total" UniqueName="REP_Total" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="REP_Current" HeaderText="Current" ColumnGroupName="REP" SortExpression="REP_Current" UniqueName="REP_Current" Visible="True" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"></telerik:GridBoundColumn>
</Columns>

Thank you,

Tom

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Nov 2013, 02:48 PM
Hello Tom,

This is a known bug and our developers are working on it. They will do their best to fix this problem in the multi-column headers for the next version of the controls. Please excuse us for the inconvenience caused.

Regards,
Pavlina
Telerik
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 the blog feed now.
0
Service
Top achievements
Rank 1
answered on 28 Jul 2014, 07:02 AM
This problem still exists. Any idea when it is solved?
0
Pavlina
Telerik team
answered on 31 Jul 2014, 06:46 AM
Hi,

I am afraid I cannot give you an exact time frame when this issue will be fixed. However, we will do our best to resolve it as soon as possible

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Tom
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Service
Top achievements
Rank 1
Share this question
or