Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
problem with editable and hidden
24/01/2010
02:09
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

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.

24/01/2010
18:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

25/01/2010
11:16
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

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 !

26/01/2010
17:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information