jquery ui - JQGrid setRowData event after formatter called -
In response to
call the specific implementation of my grid Setrodata in many places when setRowData is called, the formatting is called for the column, and when the line is rebuilt in response to the SetRawdata & lt; Button & gt; Will return
But in the menu example, the formatting buttons (call to .button () and .buttonset () are at loadComplete. Since loadComplete does not explicitly run after setRowData, the button in the column looks unformatted. Therefore, we say that we add a button to the body:
& lt; Button ID = "SetArt Data" & gt; Set line data & lt; / Button & gt; One click event $ ("# setRowData") in
and $ (function () {}). Click (function () {var $ grid = $ ("# list"); var data = $ grid.jqGrid ('getRowData', 1); data.name = "change!"; $ Grid.jqGrid ('setRowData ', 1, data);});
If you click on the button, then "my work" and "blah blah" buttons appear unchanged.
Therefore, I'm looking for an incident that I & lt; Button & gt; I can hang setRowData for later S has been added to the DOM, so I can call them again at Bulletin () and. Buttoneset (). I want to use an event, because I have a normalized routine which is doing setRowData (completely in another library).
OK, I dug through the JQGrid code, and saw that after a jqGridAfterGridComplete setRowData is over Is called. So I added a single:
$ ("# list"). ("JqGridAfterGridComplete", function () {... call .button code again}); On the finished function and the styles are re-applied, there may be a better way, and please offer one for free. But it seems to work.
Comments
Post a Comment