Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サブグリッドのツールバーのボタンをクリックしたときに、親行の ID を取得する方法はありますか?
今のところ、どの FK が必要なのかわからないため、カスタム ボタンを使用できません..
以下を試しましたが、サブグリッドの最初の行しか返されません。
var grid = $(this); var currentRow = grid.jqGrid('getRowData', 0);
サブグリッドの名前が次の名前になっていることがわかりました: Jqgrid_PARENTID_t
そのため、アンダースコア間の値を正規表現で抽出することになりました。