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の追加/編集フォームを条件付きで非表示/表示する方法は? 私は次のことを試しました:
afterShowForm:function(formid) { jQuery('form#'+formid).hide(); jQuery('.jqmOverlay').hide(); }
ある条件下でフォームを非表示にすることはお勧めしません。ユーザーが [追加] または [編集] ボタンをクリックしても、何も起こらないのですか? ユーザーに誤解される可能性があると思います。
その代わりに、の編集ボタンから一部を無効/有効にしたり、非表示/表示したりできますnavGrid。答えは、ボタンを条件付きで有効/無効にする方法を示しています(古いデモを参照)。別の回答(デモを参照)は、のボタンを表示/非表示にする方法を示していますnavGrid。
navGrid