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

ColumnChooser for GridView in a TabControl

3 Answers 82 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 04 Mar 2015, 12:37 PM
Hello,

I have a RadTabControl. Inside every tab there is a UserControl with RadGridView. I want to add a RadDropDownButton with Column Chooser for the GridViews. Like this: http://docs.telerik.com/devtools/wpf/controls/radgridview/how-to/show-hide-columns-outside-of-the-radgridview.html I tried placing it in RadGridView.ControlPanelItems and everything works fine, but it takes a whole row for just one control. Can I put it in RadTabControl.AdditionalContent? How should I bind the Columns property right?

3 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 05 Mar 2015, 01:17 PM
Hi,

I cannot understand what is the issue that you encounter when you try to host that column selector in the ControlPanelItems section of the RadGridView? If you set only one item it is expected the control to visualize only one button in all the available space.

You can find SDK example demonstrating how this panel can be used to host more than one item. Please take a look at it and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
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.

 
0
Dmitry
Top achievements
Rank 1
answered on 05 Mar 2015, 01:24 PM
Thank you for your reply. There is no issue. I find it inconvenient. Can I avoid using ControlPanel and place my Column  Chooser in RadTabControl.AdditionalContent?
0
Pavel R. Pavlov
Telerik team
answered on 09 Mar 2015, 01:08 PM
Hello,

To achieve your requirement you can take a look at the approach demonstrated in our Column Chooser GitHub example.

Regards,
Pavel R. Pavlov
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
TabControl
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or