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

ColumnChooser multi selection

5 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Veteran
Marc asked on 25 Jan 2018, 01:53 PM

Hello,

is it possible to select more than one column at once?

 

Kind regards

Marc

5 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jan 2018, 02:38 PM
Hello, Marc,

Thank you for writing.  

The ColumnChooserElement internally uses its own ColumnChooserItems to display the columns. These items are not supposed to be selected but draggable. That is why if you need to accomplish multiple columns to be dragged from the column chooser and dropped to the grid I would recommend you to create a separate form with a RadListView for example hosting the invisible columns as data items. By using the drag and drop service that both RadGridView and RadListView support you can implement the custom columns visibility logic. Thus, you will be able to hide columns from the grid when dragging a column from the grid to the list view and show this column in the other drag drop direction. Additional information for RadDragDropService and how to customize it is available in the following help articles:
https://docs.telerik.com/devtools/winforms/listview/drag-and-drop/listviewdragdropservice
https://docs.telerik.com/devtools/winforms/listview/drag-and-drop/drag-and-drop-using-raddragdropservice

I hope this information helps. Should you have further questions I would be glad to help. 
 
 Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Marc
Top achievements
Rank 1
Veteran
answered on 25 Jan 2018, 03:59 PM
I'll try this. Thank you for your help.
0
Marc
Top achievements
Rank 1
Veteran
answered on 26 Jan 2018, 02:56 PM

Hey Dess,

DragDrop from ListView to GridView works fine now.
But if I Drag a ColumnHeader to the ListView, I don't know how to get the information about the ColumnHeader.
Element is type of SimpleListViewVisualItem.

Don't know how to get the draged HeaderElement.

 

Kind regards

0
Marc
Top achievements
Rank 1
Veteran
answered on 28 Jan 2018, 09:47 AM

Hey Dess,

I think, found the solution in this thread.

If I have further questions, I'll contact you.

 

Regards

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Jan 2018, 12:52 PM
Hello, Marc,  

Thank you for writing back. 

If you drag a column header from RadGridView to RadListView, the target element is supposed to be SimpleListViewVisualItem not the dragged item. The SimpleListViewVisualItem represents the visual item in RadListView. If you need to extract the data from the column header you should do it from the dragged instance. In the referred forum thread it is demonstrated how to handle the case when you drag a GridHeaderCellElement. You can access the dragged column by the GridHeaderCellElement.ColumnInfo property and thus get the information you need. 

If you have any additional questions, please let me know. 

 Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Marc
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Marc
Top achievements
Rank 1
Veteran
Share this question
or