Jqgrid dynamically loading select options

Jqgrid dynamically loading select options

Posted: netema Date: 02.06.2017

Minimum search word length is 4 characters - maximum search word length is 84 characters.

jqgrid dynamically loading select options

I am trying to dynamically load a different set of values for a drop down, based on teh selected value in a dropdown with static values. How do I maintain different drop down values per row, or do I need to reload the appropriate list when the current edit row changes? It's an interesting question! It seems to me, that currently it is not possible, what you want. The Url parameter dataUrl from the editoptions of colModel is static.

jqGrid - dynamically load different drop down values for different rows depending on another column value

In some situations jqGrid add some additional parameters depend on context like Id of row which are editing to Urls for example, to editurl , but dataUrl stay currently static. The only way I see, which could be probably suitable for your porpose is following.

Inside the function you have not only "data" parameter, which is data returned from the server, but in "this. So you could find out the id of the row and the name of the column, which are clicked.

If not, you needs probably modify the code of jqGrid espetially createEl function near "jQuery. If I understand right this is a classical dependend listbox situation, which can be accoplished with dataEvents - i.

Since it doesn't exist, no id exists to update, so I get an empty select list. When the dataEvents type: Forum November 2nd, Please consider registering guest. Login name Password Remember me Lost password? Select Forum TreeGrid Feature Request Discussion Help Bugs Releases jqGrid Roadmap. Custom formatting groupTex… jqGrid Forum is moved Problem when using multiselect with cell… Strange behaviour after updating to jqGr… ajaxDelOptions is not working properly i… Resizing ColumnChooser dialog Bug in addRowData Method generate jquery.

Home Forum Help Dynamic loading of an edittype: The forums are currently locked and only available for read only access. Topic RSS Dynamic loading of an edittype: All, I am trying to dynamically load a different set of values for a drop down, based on teh selected value in a dropdown with static values.

The drop down values in the second dropdown can be different from row to row.

jQuery Grid Plugin - jqGridForum

I think that is all. Hello, Oleg thanks for clarifications. Here is a example. For professional UI suites for PHP, ASP.

jqgrid dynamically loading select options

NET MVC visit us at our commercial products site - trirand. Tony, That appears to be exactly what I need. I'll try that in the next few days.

jQuery selected selector

Many thanks, Allen Oleg - Interesting information you have provided, I'll keep those options in mind. Tony, I have another issue with this dynamic loading of select options.

I figured out a solution to my issue.

jqgrid dynamically loading select options

At that point I save that information using the jQuery. If anyone wants to see code, I can post snippets. Most Users Ever Online:

inserted by FC2 system