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.
私はJqGridが初めてです。グリッドの読み込み後に列名を変更したい。私が試してみました
$("#Gridname).jqGrid("setLabel","FirstName","Modifed FistName",{"text-align":"right"});
しかし、それは機能していません。
グリッドが作成された後に実行されるように、window.setTimeout 内にコードを配置してみてください。
これは、jqGrid 列ヘッダーを変更するために使用したものです。
$(function () { window.setTimeout(function () { $("#Gridname).jqGrid("setLabel","FirstName","Modifed FistName", {"text-align":"right"}); }, 0); });