Forum


03:19

10/08/2012

10:43

Moderators
30/10/2007

Hello,
This is a little bit hard to do for now.
You can start if you overwrite the modal functions in grid.common.js
Kind Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
09:48

10/08/2012

09:21

10/08/2012

Our of courtesy and in case anyone else has the same question in future. This is how I did it:
- I created a jquery ui dialog and called it from a <CustomButtons><trirand:JQGridToolBarButton> custom button on my jqGrid.
- The dialog ran a jquery ajax json call to an ASP web service. (adding to database) (I’m using jqGrid for ASP.NET web forms).
- After the successful ajax call I refreshed the jqGird using $("selector").trigger("reloadGrid");
- Or replace step 3 with eval('var data = {…
$("selector").jqGrid("addRowData", data, "last");
(this option prevents the ‘loading’ message).
05:35

01/09/2012

I am also stuck in same problem
I am populating a jqgrid from my server, all the columns of particular table are not shown in grid. For example a user has name,his car name and address, but in grid i am only showing user name and car name. When i add or edit a user i need to add and edit the address too, so i cannot use on the fly form as it will show only name and car name.
I have been using a separate form to update the table and reloading the grid and it worked fine. Now i have a requirement that i can add multiple users from form, so i thought of using a jquery ui form dialoge.
jquery ui form dialoge don't update the underlying jqgrid
in dialoge i am writing
var gridId = $("#gridId");
alert(gridId);
var myData = [{name:"neeraj"}, {carname:"toyota"}];
$("gridId").jqGrid("addRowData", myData, "last");
alert(gridId.getGridParam('records'));
first alert gives me an [object Object] but second one gives undefined
I am calling dialoge from a normal button not jquery custom button
Most Users Ever Online: 715
Currently Online:
40 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66