jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Grid dropdown column source updating from another dropdown column value
Tagged: #jqwidgets-grid, angular grid, bootstrap grid, coupled cells, coupled columns, coupled items, coupled values, grid editmode, javascript grid, jquery grid, jqxGrid ;, one value reflect to next
This topic contains 8 replies, has 3 voices, and was last updated by Hristo 7 years ago.
-
Author
-
June 27, 2016 at 3:14 pm Grid dropdown column source updating from another dropdown column value #85443
I’m aware of the cascading editing example here:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cascadingediting.htm?arcticHowever, working with a grid with editmode: ‘selectedrow’ changing the first dropdown will not trigger initeditor for the second dropdown. Note, this is also the case when editmode is not selectedrow, while inserting and editing a new row.
JSFiddle: http://jsfiddle.net/460rd769/
Is there anyway to manually trigger initeditor for the second column again?
June 28, 2016 at 7:10 am Grid dropdown column source updating from another dropdown column value #85464Hello vicalcazar,
I am not sure what you want to achieve. Now in the demo second column (City) is depending from value of the first column (Country).
What would you like to choose independent options in City?Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comJune 28, 2016 at 2:20 pm Grid dropdown column source updating from another dropdown column value #85473Sorry, I pasted the wrong JSFiddle.
Here is the correct one: http://jsfiddle.net/ybwd5nhy/2/
You will notice the City dropdown doesn’t update properly when the Country dropdown is changed.
June 30, 2016 at 8:03 am Grid dropdown column source updating from another dropdown column value #85504Hello vicalcazar,
It is incorrect to use “editmode: ‘selectedrow’,” in this case. Why you need to set this?
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comJune 30, 2016 at 3:16 pm Grid dropdown column source updating from another dropdown column value #85513Curious why the usage of editmode:selectedrow is in incorrect. Couldn’t find anything in the documentation regarding correct usage scenarios.
Using “edit:selectedrow” to prevent the source.updaterow() function from being called upon exiting each cell of the row. Only want it to be called once when the user exits the row, or hit enter.
July 1, 2016 at 9:58 am Grid dropdown column source updating from another dropdown column value #85524Hello vicalcazar,
In this example first and second column are dependent. And for that reason need to has some value set there.
You could try to create some workaround. (‘cellbeginedit’ event and also ‘beginrowedit’ and ‘endrowedit’ methods could be useful)Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comJuly 1, 2016 at 2:05 pm Grid dropdown column source updating from another dropdown column value #85530Thanks Hristo, will try to create a custom workaround with those methods.
It would be nice for the framework to support the ability to delay calling source.updaterow() until the row loses focus. Especially when editing a new row.
April 13, 2018 at 2:38 pm Grid dropdown column source updating from another dropdown column value #99707Hi vicalcazar,
Do you try a workaround on it and do you have an exemple please ? I’m in the same case of you.
Regards,
SebastienApril 24, 2018 at 7:15 am Grid dropdown column source updating from another dropdown column value #99857Hello Sebastien,
I would like to suggest you look at this and this approaches.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.