문제

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