Results 1 to 4 of 4

Thread: how to display list object

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    16

    Default how to display list object

    I have a gridA to display and clicking on one column I want to open form panel which displays another gridB. To display this second grid i have alredy have my json object (list object) inside my gridA. request you all to please help me how to display gridB with list object of GridA.

  2. #2
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244

    Default

    If the Store which backs gridA and gridB has the same field structure, it's as simple as the code shown below. This works also in the case where singleSelect is true in gridA:


    Code:
    var arrayOfSelectedRecords = gridA.selModel.getSelections();
    gridB.store.add(arrayOfSelectedRecords);

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    16

    Default

    No they are different field structures

  4. #4
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244

    Default

    Visit the API docs for Ext.data.Record.create(). The provided code sample shows how to correctly create a new record for a store and populate it via JSON.

Similar Threads

  1. Display XML data using a List/Nested List
    By busybee in forum Sencha Touch 1.x: Discussion
    Replies: 16
    Last Post: 25 Apr 2011, 6:17 AM
  2. Tap and Doubletap on List object
    By stefx in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 23 Aug 2010, 1:20 AM
  3. ColumnModel Master - Detail (List of object)
    By yafou in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Apr 2008, 1:19 AM
  4. Example for to get a Object List into Data grid
    By Rahul Yadav in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 25 Feb 2008, 9:44 PM
  5. Returning a list of object?
    By mythinky in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 31 Aug 2007, 12:05 AM

Posting Permissions

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