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

[Solved] Footer not hidden when hiding column with context menu

2 Answers 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
KevinMc
Top achievements
Rank 1
KevinMc asked on 21 Apr 2009, 09:48 PM
If i create a grid such as below and use the header context menu to hide a column it leaves the footer with the aggregate for that column displayed but all aggregates aligned one cell right of the rest of the grid. If i re-enable the  column the footer is still aligned right of the last column in the grid. Any fix for this? I am using the 2009.01.0402.35 build. Also anyway to change context to dropdown similar to the way jquery flexigrid implements it. Users are just don't seem to get right click on web pages. Hover example 3 on this: http://www.flexigrid.info/ page to see what i am talking about.




<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="odsServiceCallReport" 
        GridLines="None" AllowPaging="True" AllowSorting="True" 
        AllowMultiRowSelection="True"  
        EnableHeaderContextMenu="True" AllowAutomaticDeletes="true" AllowAutomaticInserts="true"  
        AllowAutomaticUpdates="true"
        <MasterTableView AutoGenerateColumns="False" DataSourceID="odsServiceCallReport" PageSize="15" ShowFooter="true"
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="Date" DataType="System.DateTime" HeaderText="Date" 
                    SortExpression="Date" UniqueName="Date" DataFormatString="{0:MM-dd-yyyy}"
                    <HeaderStyle HorizontalAlign="Center" /> 
                    <ItemStyle HorizontalAlign="Left" /> 
                </telerik:GridBoundColumn> 
                
                <telerik:GridBoundColumn DataField="Total" DataType="System.Double" HeaderText="Total" 
                    SortExpression="Total" UniqueName="Total" 
                    DataFormatString="{0:C}" Aggregate="Sum" > 
                    <HeaderStyle HorizontalAlign="Center" /> 
                    <ItemStyle HorizontalAlign="Right" /> 
                    <FooterStyle HorizontalAlign="Right" /> 
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
            <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" /> 
        </ClientSettings> 
        <FilterMenu> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 

2 Answers, 1 is accepted

Sort by
0
KevinMc
Top achievements
Rank 1
answered on 22 Apr 2009, 07:25 PM
Is anyone using aggregates with the context menu and not having this problem?

grid before hidden column. Right click header and uncheck a column in the context menu.

col1   col2   col3   col4
col1   col2   col3   col4
agg1 agg2  agg3  agg4


after col hidden:

col1 col3 col4
col1 col3 col4
                       agg1 agg2 agg3 agg4
0
Nikolay Rusev
Telerik team
answered on 24 Apr 2009, 05:24 PM
Hello Kevin,

Unfortunately we were able to observe this behavior.
I already forward this to our developer for further investigations.

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
KevinMc
Top achievements
Rank 1
Answers by
KevinMc
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or