Column chooser

9 posts, 1 answers
  1. Marco
    Marco avatar
    23 posts
    Member since:
    Apr 2009

    Posted 24 Sep 2009 Link to this post

    Hello,
    Is there a way to show/hide columns in runtime?  I can think of a way to display the list of columns in a popup window and then toggle on/off the visibility of the columns.  What would be the recommended way to achieve this?  A code snipped will be appreciated

    Thanks in advance,
    Marco
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 25 Sep 2009 Link to this post

    Hi Marco,

    Please check this blog post for more info:
    http://blogs.telerik.com/vladimirenchev/posts/09-04-10/how_to_custom_header_context_menu_with_radgridview_for_silverlight.aspx

    The same approach will be the same however you will need to use standard ContextMenu instead (no RadContextMenu for WPF).

    Kind regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Shunmuga Priya K
    Shunmuga Priya K avatar
    12 posts
    Member since:
    Mar 2010

    Posted 13 Jan 2012 Link to this post

    Hello,
    Is there a way to show/hide columns using context menu instead of popup window as in the example attached "columnchooser-wpf.zip" in the link http://www.telerik.com/community/forums/wpf/gridview/use-context-menu-to-show-and-hide-columns.aspx ? I can think of a way to display the list of columns in a context menu and then toggle on/off the visibility of the columns in the button("column chooser"). A code snipped will be appreciated

    Thanks in advance,
    Priya
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 Jan 2012 Link to this post

    Hi,

    You can  check  this demo for more info. The same is available in your local copy of our WPF examples. 

    Kind regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Shunmuga Priya K
    Shunmuga Priya K avatar
    12 posts
    Member since:
    Mar 2010

    Posted 13 Jan 2012 Link to this post

    Hi,

    Thanks for the quick reply.I can see in the link the demo for a gridview.But it contains context menu in right click of grid header.But i need
     show/hide columns using context menu instead of popup window as in the example attached "columnchooser-wpf.zip" in the link http://www.telerik.com/community/forums/wpf/gridview/use-context-menu-to-show-and-hide-columns.aspx. I can think of a way to display the list of columns in a context menu and then toggle on/off the visibility of the columns in the button("column chooser") as in the example attached "columnchooser-wpf.zip" in the link http://www.telerik.com/community/forums/wpf/gridview/use-context-menu-to-show-and-hide-columns.aspx.

    Thanks in advance,
    Priya
  6. Shunmuga Priya K
    Shunmuga Priya K avatar
    12 posts
    Member since:
    Mar 2010

    Posted 13 Jan 2012 Link to this post

    Hi,

    In the demo (this demo), is the context menu for the column chooser invoked explicitly in the header row or is it a implicit invocation?

    Thanks,
    Priya
  7. Shunmuga Priya K
    Shunmuga Priya K avatar
    12 posts
    Member since:
    Mar 2010

    Posted 13 Jan 2012 Link to this post

    On a button click, is it possible to invoke a telerik datagrid column chooser context menu?
  8. Mauro
    Mauro avatar
    10 posts
    Member since:
    Nov 2011

    Posted 05 Jul 2013 Link to this post

    Is possible to use such Listbox to reorder with drag & drop the order of the columns too?

    Thx in advance
    Mauro
  9. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 05 Jul 2013 Link to this post

    Hi Mauro,

    You can use the drag and drop to reorder the items in the list. Then you should assure that the DispayIndexes for the columns correspond to the order indexes in the list. 

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top