SitePen / dgrid

A lightweight, mobile-ready, data-driven, modular grid widget designed for use with dstore
http://dgrid.io/
Other
628 stars 295 forks source link

Not able to set different store for select editor widget in single column #523

Open parth5554 opened 11 years ago

parth5554 commented 11 years ago

Dear Team,

I appreciate your effort to build such a nice application.

We are using dgrid in our web application and it is working well. But we stuck at a point where we need to set different store to a column with select editor widget.

For Example: If there is two different column with select editor called "Country" and "State". When I select "Country" "India" then I want only those states which are belongs to "India" in "State" column select editor.

So "State" column select editor is dependent on "Country" Column Select Editor's selected value.

But when we try to set Store in "State" Column editor it reflects to all the rows of that column and reset the value of the "State" select editor in each row. Is there any way out to get different Store or same store with filtered values in each row in the "State" Column according to selection of "Country" ?

Thanks, Parth

kfranqueiro commented 11 years ago

Just to clarify, are your editor columns specifying editOn or are they always displaying edtiors in every row? In the case of the former, a single widget/input is reused for all editing within the column, which makes this a bit trickier, but it may still be possible to resolve using the dgrid-editor-show event introduced in 0.3.6.

parth5554 commented 11 years ago

Thank you for your prompt response. Editor column is having always displaying editor in every row. Is it possible with editor always on case? or is it easier to use edit on editor. We use grid.setStore(grid.store) to display changes in the row and to add new row in the grid. Is it anything wrong with grid.setStore? grid.setStore method reset all editors and give new id to the editor. We achieved to set individual store to select editor in a single row, but after grid.setStore method fires, it destroyed the store set to the select editor and change editor id. I have attached image for your reference. I want bacthNo according to the selection of the product. example

Please advise.

arthi123 commented 10 years ago

Is there any other information on this

parth5554 commented 10 years ago

yes there is one option. you can use Combobox instead of Select.