Results 1 to 6 of 6

Thread: How to load a grid with out any data in it even though store had data ?

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    12
    Vote Rating
    0
      0  

    Default How to load a grid with out any data in it even though store had data ?

    Hi,
    I am new to extjs and i had a requirement to show a grid with Add functionality and with out any data(even though store had data) when ever user clicks on Add button a empty record has to be added to the grid with row editor, after entering data to that empty record on Update button click record as to be saved to store and grid should become empty.

    Any help on this will be highly appreciated.

    Thanks in advance.

    Regards
    Marri

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Vote Rating
    50
      0  

    Default

    Why not to use a form for this.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Thanks for your response vadimv,
    Why i am trying to use grid is user can add multiple records in single operation and also user can edit from grid after Update.
    Actually i am using a popup window to show this grid.

    Please share if any sample code or links.

    Thanks

  4. #4
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Vote Rating
    50
      0  

    Default

    in this case just use another store, clear it after you copy the records in the base one and you will achieve what you want.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  5. #5
    Sencha User
    Join Date
    Mar 2013
    Posts
    12
    Vote Rating
    0
      0  

    Default

    I am entirely new to extjs, please can you share any sample code for the same.

  6. #6
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Vote Rating
    50
      0  

    Default

    All entirely new extjs users start with reading the guides and looking trough examples.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

Posting Permissions

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