PDA

View Full Version : form submision through data store



olavevismaya
8 Sep 2010, 1:04 AM
i to want submit a form through ds ,how can i submit...?
any one knows solution help me....

Condor
8 Sep 2010, 1:08 AM
You mean something like a search form for a grid?

You could use:

grid.getStore().load({
params: form.getForm().getValues()
});
or

form.getForm().submit({
success: function(form, action){
grid.getStore().loadData(action.result);
}
});

olavevismaya
8 Sep 2010, 1:43 AM
this one i used,if i will use this one paging is not working...
what i need is if i submit form it has to submit through data store "url"...........

Condor
8 Sep 2010, 1:45 AM
You could use:

grid.getStore().baseParams = form.getForm().getValues();
grid.getStore().load({
params: {start: 0, limit: 10}
});

olavevismaya
8 Sep 2010, 2:08 AM
thank you this one is working..