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

[Solved] How to hide column name in Rad Grid Context menu columns list using javascript

1 Answer 227 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sriramakrishna
Top achievements
Rank 1
sriramakrishna asked on 17 Jun 2009, 01:38 PM

Hi All,

I am using RadGrid in my application. I am fetching around 10 to 15 columns from the database and filling the RadGrid. As per the requirement, i have to display only specific columns in the Grid.

For this, I am hiding the columns from the user using javascript, which would not be displayed to the user.

I should also have to hide these columns in header context menu of RadGrid.

Can anyone please help to solve this issue?

Thanks,

KKB.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jun 2009, 03:54 AM
Hi,

I would suggest you to hide the Grid  column using its Visible property so that the column name will be hidden in the HeaderContextMenu as well.

ASPX:
 
<telerik:GridBoundColumn DataField="ProductID"  HeaderTooltip="MyHeader1 "  Visible="false"  DataType="System.Int32" HeaderText="ProductID" 
                        ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID"
                    </telerik:GridBoundColumn> 


Thanks
Shinu
Tags
Grid
Asked by
sriramakrishna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or