سؤال

I created a jqgrid with some functionality. It working very well. I have a big form to add and edit box. So i would like to set the width of the form, so i search and get the code from google and place it in my code. This also working.But the success and error message not shown in my grid. If i remove these two line means working well but the width not set.

{closeOnEscape:true, recreateForm: true, width:800},   // Edit options
{closeOnEscape:true, recreateForm: true, width:800},   // Add options

Please help me to solve this..

هل كانت مفيدة؟

المحلول

The below code works fine for me,

$("#ButtonId").click(function () {
            jQuery("#gridId").jqGrid('editGridRow', "new", { height: 330, width: 350, addCaption: "Add form", recreateForm: true, closeAfterAdd: true });
});

In the above, you can give the height & width as you need. The same thing for edit form too.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top