Sep 19, 2013, 3:39 PM
[CLOSED] General store questions : insert/remove, dirty, getRowsValues
Hi
I got a few general gridpanel store questions on how to do it the right/best way:
Setting:
I have a simple gridpanel with an attached store, nothing fancy.
1)
To insert a row directly via javascript:
2)
To remove a row directly via javascript:
3)
I would like to submit via a DirectMethod the dirty rows of this grid...
Thank you very much.
I got a few general gridpanel store questions on how to do it the right/best way:
Setting:
I have a simple gridpanel with an attached store, nothing fancy.
1)
To insert a row directly via javascript:
#{STORE}.insert(index, records);
It is working flawlessly but is this correct? What about the dirty flag? Because I don't see it in the gridpanel row...2)
To remove a row directly via javascript:
#{STORE}.removeAt(#{STORE}.indexOf(record));
It is working flawlessly but is this correct? What about the dirty flag?3)
I would like to submit via a DirectMethod the dirty rows of this grid...
#{GRIDPANEL}.getRowsValues({dirtyRowsOnly: true});
doesn't submit any rows at all. I would love to get an array or something in code behind where I can quickly filter the deleted and new ones to update my database.Thank you very much.
Last edited by Daniil; Sep 23, 2013 at 11:26 AM.
Reason: [CLOSED]