Forum


02:09

09/11/2009

I have a column filed from a database but invisible in the grid:
...
{
name:'password',
index:'password',
edittype:'password',
hidden:true
}
when I add a row, I do this:
url: "test.php",
...
beforeInitData: function (formid)
{
jQuery("#list1").setColProp('password', {
editrules:{required:true} ,
hidden:false,
editable:true
})
...
}
...
When I submit the form, jQgrid seems to hang
If I remove "editable:true" the submit is correct (but the password field absent) and test.php executed
If I put "editable:true" in the col definition, jQgrid hangs also
I don't see my fault ... note that test.php doesn't handle the fields.
18:11

Moderators
30/10/2007

Hello,
Set the editable:true in colModel - it is the same.
Also I recommend you to use edithidden option in editrules and do not use beforeInitData.
http://www.trirand.com/jqgridw.....#editrules
Best Regards
Tony
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.
11:16

09/11/2009

If I set editable:true in colModel then jQgrid hangs !
I followed your advice:
{
name:'password',
index:'password',
edittype:'password',
hidden:true,
editrules: {edithidden:true}
}
and beforeInitData is empty now.
When I select Add the field password is still hidden !
If I add editable:true to colModel then the field password is visilble but jQgrid hangs !
17:46

Moderators
30/10/2007

Hello,
What is the error reported?
If you want to show some field in add and not in edit this is not the right way. Search the forum and you will find the solution. Too many post about this including jQuery google groups
Best Regards
Tony
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.
Most Users Ever Online: 715
Currently Online:
94 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