Results 1 to 2 of 2

Thread: How send several grid records in 1 Ajax Json request.

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    23
    Vote Rating
    0
      0  

    Question How send several grid records in 1 Ajax Json request.

    Hello,


    I have created a grid with a checkbox column, as in the example
    (Grid Plugins - grid 4) - the CheckboxModel has selectionchange
    listener.
    How do send all of the selected records to the server in 1 ajax,
    json request? Is there an example?
    With one record I could do record.save()...


    I shall create a json writer and an ajax proxy on the model/store.


    Thank you,
    bryan

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1382
      0  

    Default

    If you can get a list of the records you want I would iterate over them and build an array of objects and then send in an ajax call
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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