0

For example I use a Trirand JqSuit TreeView or some Ajax category navigation on left panel of the website. It contains 2 categories:

New Arrivals (50)

Processed (50)

Now, I have a JqGrid displaying the "New Arrivals" table data. I edit a row, and mark the row as "Processed". I want the JqGrid to trigger the TreeView when update is completed. So we can have the following:

New Arrivals (49)

Processed (51)

What method is used in JqGrid to trigger another control (in the New Arivals table case)? Or be triggered by another control (in the TreeView case) Thank you.

Tom
  • 14,961
  • 13
  • 64
  • 105
  • You should specify which [editing mode](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jqgriddocs#editing) you use. – Oleg Apr 26 '12 at 08:26
  • Sorry, I am new to jqgrid. Playing around with the demos they provided. Not sure what editing mode I should use and that to do with the triggers. – Tom Apr 26 '12 at 09:34
  • How you start editing? Do you click or double-click on the row to start [inline editing](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing) or you click on Edit icon on the [navigator bar](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:navigator) and edit the row inside of [pop-up dialog](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#events)? – Oleg Apr 26 '12 at 09:49
  • I am following the jqSuiteASPNET_MVC_4_4_1_0\ example. I choose 1 row, click the edit icon to open an overlay details view, edit the item, then close it. – Tom Apr 26 '12 at 10:28
  • You are in any way wrong here, because [jqgrid](http://stackoverflow.com/tags/jqgrid/info) tag which you use in your question means open source *JavaScript* library which will be used for the commercial product jqSuit. Compare with the tag [jqgrid-asp.net](http://stackoverflow.com/tags/jqgrid-asp.net/info). The support of jqSuit is mostly on [the forum](http://www.trirand.net/forum/). I personally don't know jqSuit. One can use jqgrid in MVC directly (see [here](http://stackoverflow.com/a/5501644/315935) or better [here](http://stackoverflow.com/a/9349688/315935)). – Oleg Apr 26 '12 at 10:38
  • If you want to post jqGrid question you should reformulate your question based on the JavaScript code which you can see in web browser. jqSuit uses jqGrid internally, so in the code on the client side in web browser you will see the code. – Oleg Apr 26 '12 at 10:40
  • Hmm. I always thought they were the same jqgrid base, just with a license title difference. Thanks for pointing out. I need to read more before coming back. – Tom Apr 26 '12 at 11:00
  • 1
    The difference is that I can directly say that you should use `aftersavefunc` parameter of [editRow](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing#editrow) (inline editing) or [afterComplete](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#events) callback in case of form editing to solve your problem. You should to find out yourself which method of jqSuite you should use to do the same. – Oleg Apr 26 '12 at 11:11
  • Thank you very much in every way. It gives me a good head start :) – Tom Apr 26 '12 at 11:19

0 Answers0