PDA

View Full Version : how to confirm the store about changed data?



zoola
6 Apr 2008, 10:35 AM
hi,

i have some editor panel and i want to fire event that his data changed after i
change is value from the javaScript code,

i try to do somthing like:



store.fireEvent('datachange');


but it dont effect nothing.

yaroslav
6 Apr 2008, 10:45 AM
store.commitChanges() ??

zoola
6 Apr 2008, 1:35 PM
store.commitChanges() ??

hi, commitChanges will not help me, i'll try to explain my self better:

i have gridPanel and "save" button, when data changed, the save button become enable and after make action the button disabled.

what i'm trying to do is fire an event to the store about data changed so the save button will become enabled.

:-?

mjlecomte
6 Apr 2008, 6:15 PM
Post some code and say what is wrong in your code. I don't understand what your problem is.

If you want to enable your button just put the necessary code to enable the button inside the datachanged event of the store, or maybe in a callback of your ajax request.