Open mahajanrahuld opened 7 years ago
Use custom display option in your field like this:
display: function(data){
var select = "<select name='selectName' style='min-width:150px' data-id='"+data.record.id+"' >";
selects += "<option value='' disabled selected>Some placeholder</option>";
for (var i = 1; i <= OptionsValuesFromDatabasse; i++) {
selects += "<option value='"+i+"'>"+i+"</option>";
}
selects += "</select>";
return selects;
}
How to make our jtable grid in inline edit mode. I want to implement inline edit functionality. Edit filed should be dropdown ?
On submitt button click read all selected row value
How to add textbox inside jtable row for inline editing?
Currently inline editing is not supported by jTable. To make this work you would need to write some Java Script to do it.
It is an interesting problem and I think my suggestion above would work. I'd need some time to actually be able to get an example working for it.
HI team,
I need functionality to dynamically add drop down for each row inside jtable grid.
How to add drop-down? I have seen couple example of your grid, In all example shown dropdowns in edit popup.
Thanks