Grid with AutoSave sample

  1. #1

    Grid with AutoSave sample

    Hi, I try autosave example (https://examples1.ext.net/#/GridPanel/Update/AutoSave/),
    and find out that when I click on add button in grid toolbar it add blank row and call serverside code.
    I think it should not if allowblank is set to false is set in store's field definition?

    It it bug?

    Thank you
  2. #2
    I would imagine that to prevent the behaviour you described, would be to set the AllowBlank property on the <editor> in the gridpanel and intercept the call to the server side based on the form being valid.
  3. #3
    Hi,

    Please add the following store's listener
    <BeforeSave Handler="var valid = true; this.each(function(r){if(r.dirty && !r.isValid()){valid=false;}}); return valid;" />
  4. #4

    Thank you Vladimir

    Thank you for your solution,
    but i still don't know if it is bug or expected behavior.

    When I googling I found your older note
    http://forums.ext.net/showthread.php...ll=1#post41577
    Please note that you can set AllowBlank="false" for required RecordField, in this case the save request (if you have AutoSave="true") will not be initiated until the record is valid
    So maybe you should update your note.

    Can you add more detail about how autosave works, please.

    Petr

Similar Threads

  1. Two Grid Sample bug
    By YarikK78 in forum 1.x Help
    Replies: 1
    Last Post: Oct 31, 2011, 1:28 PM
  2. Replies: 3
    Last Post: Mar 25, 2011, 9:55 AM
  3. Combinaiton Sample - Grid panel header Change
    By Sagar2529 in forum 1.x Help
    Replies: 0
    Last Post: Feb 10, 2011, 6:40 AM
  4. [CLOSED] [1.0] Loadmask on Two Grid Sample
    By MP in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 07, 2011, 3:07 PM
  5. Replies: 4
    Last Post: Feb 02, 2011, 8:23 PM

Posting Permissions