ColumnChooser multi selection

6 posts, 0 answers
  1. Marc
    Marc avatar
    46 posts
    Member since:
    Mar 2017

    Posted 25 Jan 2018 Link to this post

    Hello,

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

     

    Kind regards

    Marc

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3089 posts

    Posted 25 Jan 2018 Link to this post

    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.
  3. Marc
    Marc avatar
    46 posts
    Member since:
    Mar 2017

    Posted 25 Jan 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    I'll try this. Thank you for your help.
  4. Marc
    Marc avatar
    46 posts
    Member since:
    Mar 2017

    Posted 26 Jan 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    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

  5. Marc
    Marc avatar
    46 posts
    Member since:
    Mar 2017

    Posted 28 Jan 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Hey Dess,

    I think, found the solution in this thread.

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

     

    Regards

  6. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3089 posts

    Posted 29 Jan 2018 Link to this post

    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.
Back to Top