开发者

jqgrid add new row - pre-filled

I use two grids at one PHP page. Is there any way to get data from the first grid (i.e. after click row)开发者_如何学Go and pre-fill it into the add new row form in the second grid? thank you for any suggestion Petr


I am not sure that I correct understand what you mean under the "pre-filling". But how I understand you question you can do following:

With respect of onSelectRow event which you define on the first grid you will receive the id of selected row as the parameter. Inside of the onSelectRow event handle you can call getRowData to get full information about the data of selected row. Then using addRowData for example you can add new row in the second grid.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜