如何在行内编辑时获得jqGrid单元格的值(getcell和getRowData返回单元格内容,而不是输入元素的Actual值)。
发布于 2012-05-14 15:18:30
嗨,我也遇到了这个问题。最后我用jQuery解决了这个问题。但答案与网格本身有关,而不是一个常见的问题。希望能有所帮助。
我的解决方案如下:
var userIDContent = $("#grid").getCell(id,"userID"); // Use getCell to get the content
//alert("userID:" +userID); // you can see the content here.
//Use jQuery to create this element and then get the required value.
var userID = $(userIDContent).val(); // var userID = $(userIDContent).attr('attrName');https://stackoverflow.com/questions/1775524
复制相似问题