0

is it possible to fire the beforshowform event in inline editing, because as per wiki i m not able to find any solution to call before show form in inline editing with option editformbutton:true . Any help is much appreciated

user1996823
  • 579
  • 1
  • 4
  • 10

1 Answers1

1

Inline editing don't display any form. So usage of beforeShowForm is not possible in inline editing mode.

You wrote about the usage of editformbutton: true. So you probably use formatter: "actions" with the property. In the case you do use form editing. You can specify any form editing options inside of editOptions option (see the documentation). So the usage of formatter: "actions" should be like below

formatter: "actions",
formatoptions: {
    editformbutton: true,
    editOptions: {
        beforeShowForm: function ($form) {
            alert("In beforeShowForm");
        }
    }
}
Oleg
  • 220,925
  • 34
  • 403
  • 798
  • thanks a lot oleg ,you made my day. Appreciated your help and command over jqgrid. one more question i have posted can u provide solution for that also. – user1996823 May 13 '13 at 06:40
  • Sorry i forgot to accept... i have posted this one more question http://stackoverflow.com/questions/16514520/custom-buttons-in-inline-editing-like-we-have-in-pagination-div-in-jqgrid – user1996823 May 13 '13 at 06:51
  • @user1996823: I reread multiple times [your question](http://stackoverflow.com/questions/16514520/custom-buttons-in-inline-editing-like-we-have-in-pagination-div-in-jqgrid) and all comments to the answer. I still don't understand what you want to implement. What button you want add in each row? Why `formatter: "actions"` do not what you want? I personally don't like to place the same buttons in every row of grid because it spends the place on the page. I use mostly context menu with items generated from buttons of navigator bar (see [the answer](http://stackoverflow.com/a/8460116/315935)). – Oleg May 13 '13 at 07:38