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
Locked row in grid.
23/07/2008
08:13
Avatar
brad8118
Member
Members
Forum Posts: 20
Member Since:
23/07/2008
sp_UserOfflineSmall Offline

First off - Awesome work Tony. 

Would it be able to add a second nav bar or a locked row to a grid.  Im working a grid with numbers and would like to have a row that has the sum of the rows locked at the bottom.

Would it be possible to add a second nav bar to display these results. I suggest a nav bar because it can use its own CSS which would allow it to "stick out".  The only down fall is that the items in the nav bar would notalign up with the other items.

Thanks

Brad

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

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

Brad,

There is such way see examples New in version 3.1

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.

23/07/2008
10:51
Avatar
Creativebyte
Munich / Germany
Member
Members
Forum Posts: 17
Member Since:
22/07/2008
sp_UserOfflineSmall Offline

Hello Tony, Brad,

I would like to support this feature request but in a different matter. I use jqGrid on an administrative website that allows the administrator to change certain list values, add new ones, etc etc.

As you may know, changing settigns that are in use or even deleting them would cause a lot of problems, the smallest one that it is messing with the data that the user has entered.

So, I would like to have a possibility to lock certain rows (best of the best would be to do this based on a cell value, e.g. if the row "in use" has an "x" value) so that those can't be selected and maybe even colored in a different way.

At the moment I do this myself in the loadComplete function, but to have this as a standard feature would be great.

Thanks,

Creativebyte

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

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

This can be done easy when using afterInsertRow with combination of one hidden field. That is you can color the row this way

afterInsertRow : function(rowid, data) {

if (data.somefield == 'a') {

// color the row

$("#rowid","#mygrid").css("color","red")

...

}

}

In a hidden field you have value that the row is used - then you can disable the action on this row

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.

26/07/2008
08:40
Avatar
Creativebyte
Munich / Germany
Member
Members
Forum Posts: 17
Member Since:
22/07/2008
sp_UserOfflineSmall Offline

Hi Tony,

Good to know, thanks. But if you could provide a one-shot function like lockRow() (maybe with an additional callback function when clicked (fpr displaying custom error messages) and a varaible for color) or something it would be great!

BR,
Creativebyte

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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