Forum


14:16

11/07/2008

Isn't it possible to choose a row where the view will start?
Example: I have a grid with a row for each day in the month. For september I would right now have 29 rows.
Right now I have to scroll down to the end of the grid. I would like to position at the end of the grid, ie row 29.
I've tried to search the forum and the documentation, but nothing showd up
03:30

Moderators
30/10/2007

Hello,
Not sure what you want, but maybe you can use
height: 'auto'
and then the methods
setSelection(rowid) to select a row dynamically
resetSelection - to reset all selected rows
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.
12:42

11/07/2008

It's a grid that is generated from the server and it may be from 1 to 31 rows long (for each day in the current month). I want no more than 10 lines visible at a time. If there are more rows than 10, there will be a scrollbar to get to the bottom.
Now, if it's the today, the 30. september, the server will generate a list of 30 rows. When the grid is finished, I will see the first 10 rows and I have to scroll down to day 30. I would like this to happen automatically, so it will display the last 10 rows of the set, and the scollbar can still be used to scroll up to the first rows.
I hope it is understandable?
03:27

Moderators
30/10/2007

Hello,
This time I undestand what you want 🙂
Currently this can not be done, but there is potencial in
the method setSelection. Since I neeed something in my project I will see
if I can do that in the final release. This will also will be very usefull in form edit
when we talk through the records (edit mode)
Best Regads
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.
02:31

11/07/2008

Yeah, I know I wasn't too clear the first time 🙂
A follow-up question - I'd like to manipulate the CSS classes in same grid so that weekdays have one color, weekends another and holidays yet another. Remember, each day of the month is a separate row.
The information about which type (weekday, weekend, holdiay) will come from the server, but the question is: Can I set the css class of the row based on the data I receive from the server?
02:14

Moderators
30/10/2007

Hello,
Use afterInsertRow event again with setCell method.
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.
01:59

11/07/2008

Currently this can not be done, but there is potencial in
the method setSelection. Since I neeed something in my project I will see
if I can do that in the final release. This will also will be very usefull in form edit
Dit it make it to the 3.3 release? Nothing in the notes.
Btw isn't the list element an ordinary scrollable element? I tried the ScrollTo plugin (http://plugins.jquery.com/proj.....t/ScrollTo) the other night with no luck.
02:18

Moderators
30/10/2007

Hello,
Sorry this is not in the 3.3. It is planed for next release.
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:50

Moderators
30/10/2007

Hello,
I will use the same approach as in cell editing module.
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:
49 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