Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Buttons > Show/Hide RadGrid using RadButton

Not answered Show/Hide RadGrid using RadButton

Feed from this thread
  • Posted on Aug 16, 2011 (permalink)

    Howdy Everyone,

    I'd like to ask on how to hide/show telerik grids on the same window by clicking a button?

    Here's my scenario: 
    I have 3 buttons: the day, week and month. My default grid on the window is the Day Grid. When I clicked on the day button, the day grid would show up, when the week button is clicked, the week grid will and the day grid will hide, and lastly, when the month button is clicked, the month grid will show and the week grid will be hidden. Please help me since i'm new to your tools. Would greatly appreciate your help. God bless.

    Ayana

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Aug 19, 2011 (permalink)

    Hello Yana,

     As I managed to understand, only one of the three Grids will be visible at the same time corresponding to only one pressed button from the three Buttons. If so, the usual approach is to have 3 RadRadioButtons in a Group ( so that only one of the three will be pressed) and 3 Grids located in one parent grid. Every Grid's Visibilty could be bound to the IsChecked property of the corresponding button via Converter. The Converter simply transfers true to Visible and false to Collapsed. Let us know if you need further assistance on this.

    Kind regards,
    Petar Mladenov
    the Telerik team

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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Buttons > Show/Hide RadGrid using RadButton