开发者

Getting a FormPanel as well as GridPanel as a single JSON Store

开发者 https://www.devze.com 2023-02-23 05:59 出处:网络
How can I post a FormPanel as well as an EditorGrid ( Grid Panel) as a single JSON object in ExtJS with Rails 3.0.3?

How can I post a FormPanel as well as an EditorGrid ( Grid Panel) as a single JSON object in ExtJS with Rails 3.0.3?

For Ex: I have a FormPanel and a GridPanel, when it's 开发者_开发问答submitted, it goes as a single JSON Store into the controller.

P.S: Any way to do that without using Arrays?

Thanks in advance !


you might want to split the submit event into two elements. In other words, you can encapsulate the form and the grid on 2 separate elements you can check for all fields during the submit. That would create 2 separate post events. However, why would you want to do that. you should just redirect the events of each individually as an action happens. And no, extjs formats everything in a JSON that you would have to decode out to break the array.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号