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
restoreRow and hidden columns
07/07/2008
07:34
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

Greetings.

I have 2 combobox (select) columns in grid row, depending on their values, i change the value on another column wich is hidden (on colModel properties for that column hidden:true). And there is  the problem when i call restoreRow for this row the value from the hidden column did not resotre.

07/07/2008
08:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Set this column as editable - i.e. editable:true, instead that it is hidden and the value will be restored.

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.

07/07/2008
08:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hi again,

If I look into the code there is some bug here. Thank you. It will be corrected. The reason is that all values (except subgrid and multi select) are pushed in saved array, but I restore only these values that are editable.

Again Thanks

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.

07/07/2008
09:08
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

I`m using 3.2rc version of jqGrid.

08/07/2008
02:11
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

Is there any solution or fix, for the problem?

08/07/2008
02:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

I fixed this. If you can't wait for the final 3.2 (after some days)

open the grid.inlinedit.js find a function restoreRow

then whitin this function find :

if ( nm !== 'cb' && nm !== 'subgrid' && $t.p.colModel[i].editable==true)

and replace with

if ( nm !== 'cb' && nm !== 'subgrid')

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.

08/07/2008
03:53
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

Thanks for the fast response, but this did not fix my issue,

i also set the colmodel for the column which  is

{name: “StmId”,index: “StmId”,xmlmap: “StmId”,sortable:false,resizable:false,editable:true,edittype:”text”,

hidden:true},

And when I call the restoreRow function the value of

all fields wich are not editable is space (” “).

Greetings.

08/07/2008
04:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Have tested and this work for me. Try to clear the cache.

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.

08/07/2008
05:34
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

I have been cleared my cache from the browser. The bug is staying.

My previous post describe, the aftermath of fixing line. After restoreRow,

every column in the row which is not editable

( "editable:false", "hiden:true" or "editable:true,hidden:true"),

lose his text!

Without fix line: When i`m in editRow mode editable fields are input box

or comboBox ("select") except not editable(brackets up in the post),

I have a editable field an comboBox, depending on their values i change

the text in not editable col, reach that col using:

$(gridid +" #"+rowid).find("td:eq(3)").text("newVal") , after that

 i click custom button, which call restoreRow. Then the text in that box wich is hidden is " "(space) .

08/07/2008
06:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Sorry for this, but if I see the 3.2rc there is another place for correction.

Would you like to test?

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.

08/07/2008
06:53
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

Ok. What should I do?

I`m using 3.2rc version of jqGrid. Downloaded week ago.

08/07/2008
07:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

have sended to e-mail listed here. Please let me know if all is ok

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.

08/07/2008
07:38
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

I think that it`s working perfectly thanks a lot.

Greetings.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
27 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