Results 1 to 2 of 2

Thread: toggle between dataview and grid

  1. #1

    Default toggle between dataview and grid

    Hello

    With a button I want to switch between a Dataview(Panel with XTemplate) and a GridPanel.
    They both use the same JsonStore.
    the Dataview is in the center region, the button in the north.

    What's the best method to do this?
    removeAll() on the Dataview and render() a new GridPanel?

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Use a CardLayout and switch between the two as needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •