I have implemented dependent dropdowns in jqGrid (similar to this example). The row data returned has values as well as display values. How can I show display values on grid rows? At grid initialization time I do not have list of values for dependent dropdowns, they get loaded from the server when user selects value from other dropdown. formatter: 'select'
helps when I know the values of dependent dropdown but I am not sure how to use it when the values are loaded dynamically.
相关问题
- How to bind a dropdown list inside jqgrid row cell
- jQgrid filterToolbar fails with searchOnEnter
- Detecting checkbox event in jqGrid cell
- How to alter data received from the server before
- How to access other row data from a cell's cus
相关文章
- jqGrid Row Object in onSelectRow
- Weird behavior of jqgrid Grouping
- jQuery - jqGrid - submit buttons in each row
- JqGrid: sorting of local data
- How to Expand/Shrink row in Jqgrid dynamically
- VB.net FileUpload using Ajaxcall
- jqGrid addRowData doesn't work with grid as su
- How to turn off column highlighting (on hover) for
In case of loading the data from the server you need just set
editoptions.value
orformatoptions.value
beforeformatter: "select"
start to process the data. You can usebeforeProcessing
callback for example. It will be called at the moment which you need. You can place the information witheditoptions.value
inuserdata
part of the server response or in any other place. Thedata
parameter (the first parameter) ofbeforeProcessing
callback contains all the data from the server response. So you can easy get the required data and to usesetColProp
for example to change the options used byformatter: "select"
. I recommend you to read the answer for the corresponding code example.