Paul Evers
Top achievements
Rank 2
Paul Evers
asked on 13 Sep 2013, 12:08 PM
Hi,
I have a RadGrid with a EditCommandColumn. In the headercontextmenu this column can be hidden when I choose Columns (see screenshot). How can I hide this column from the headercontextmenu?
Paul
I have a RadGrid with a EditCommandColumn. In the headercontextmenu this column can be hidden when I choose Columns (see screenshot). How can I hide this column from the headercontextmenu?
Paul
5 Answers, 1 is accepted
0
Jayesh Goyani
Top achievements
Rank 2
answered on 13 Sep 2013, 12:27 PM
Hello,
Please try with the below link.
http://www.telerik.com/community/forums/aspnet-ajax/grid/hide-columns-in-header-context-menu-for-column.aspx
Let me know if any concern.
Thanks,
Jayesh Goyani
Please try with the below link.
http://www.telerik.com/community/forums/aspnet-ajax/grid/hide-columns-in-header-context-menu-for-column.aspx
Let me know if any concern.
Thanks,
Jayesh Goyani
0
Paul Evers
Top achievements
Rank 2
answered on 13 Sep 2013, 12:31 PM
This is not the solution.
In the headercontextmenu of the other columns you can indicate which columns must be shown of hidden (see screenshot I attached in the original post). The editcolumn is shown there. I don't want this column to be hidden.
Paul
In the headercontextmenu of the other columns you can indicate which columns must be shown of hidden (see screenshot I attached in the original post). The editcolumn is shown there. I don't want this column to be hidden.
Paul
0
Jayesh Goyani
Top achievements
Rank 2
answered on 13 Sep 2013, 12:53 PM
Hello,
Please try with the below code snippet.
Thanks,
Jayesh Goyani
Please try with the below code snippet.
function
OnHeaderMenuShowing(sender, eventArgs) {
eventArgs.get_menu().findItemByText(
"EditCommandColumn"
).set_visible(
false
);
}
<
telerik:GridEditCommandColumn
UniqueName
=
"EditCommandColumn"
>
</
telerik:GridEditCommandColumn
>
<
ClientSettings
>
<
ClientEvents
OnHeaderMenuShowing
=
"OnHeaderMenuShowing"
/>
</
ClientSettings
>
Thanks,
Jayesh Goyani
0
Paul Evers
Top achievements
Rank 2
answered on 13 Sep 2013, 01:04 PM
No. As you see in the screenshot the item 'EditCommandColumn' is a subitem of the item 'Columns'.
So, this does not work.
So, this does not work.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Sep 2013, 12:52 PM
Hello,
Can you please provide your (aspx page) code ?
Thanks,
Jayesh Goyani
Can you please provide your (aspx page) code ?
Thanks,
Jayesh Goyani