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

Hide the ControlPanel in RadGridView

4 Answers 332 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Veteran
Scott asked on 02 Nov 2020, 11:41 AM
Does anyone know how to Hide the Control Panel at the top of a RadGridView control? This is these are the controls that allow you to show and hide the different columns and such. 

4 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 03 Nov 2020, 11:22 AM

Hello Scott,

The control panel is not shown by default. You need to define it manually and set it to the ControlPanelItems property of RadGridView. This said, you can hide the panel by setting the ControlPanelItems property to null. I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Scott
Top achievements
Rank 1
Veteran
answered on 03 Nov 2020, 06:08 PM

Thanks for the hint, I set a Binding to an object that does not exist, which hid the ControlPanel

ControlPanelItems="{Binding itemsControl}"

0
Scott
Top achievements
Rank 1
Veteran
answered on 03 Nov 2020, 06:17 PM

Better yet, you can just use Binding in there to default it to null:

<telerik:RadGridView
            Grid.Row="2"
            Grid.Column="2"
            ControlPanelItems="{Binding}"

 

0
Martin Ivanov
Telerik team
answered on 03 Nov 2020, 08:05 PM

Hello Scott,

If you do not want to have binding errors, you can set the property to null like so:

 ControlPanelItems="{x:Null}"

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Scott
Top achievements
Rank 1
Veteran
Share this question
or