Hi,
I have a problem about get value from a dialog and set this value for a cell.
This is column on my grid
{ title: "Accessory", width: 152,
editor: function (ui) {
chooseAccessory(ui);
}
}
The step is:
1. User click a cell under "Accessory" column.
2. Open a dialog in "chooseAccessory(ui)" method
3. Some check boxes in this dialog, user can choose them.
4. When choose finished, I will invoke another method after the dialog closed to get the chose value
5. Then I want to set this value in this click cell.
For the moment, I can get the choose results, but can't set it in cell. Please have a look with my method when the dialog closed:
var DM = $j("#grid_json").pqGrid("option", "dataModel");
DM.data[accessoryRow][accessoryCol] = valStr; //set my choose result string on this cell.
$j("#grid_json").pqGrid( "saveEditCell" );