Oops! My bad.
I had 'hidden:”true”' instead of 'hidden:true'. Now it works as expected.
The data column disappeared with both. The header column disparreared too, but the alignment went bad. You may want to make it consistent in case others make the same error I did.
OK, I had hoped to do it today, but time ran out.
I hope to get back to this soon.
Hi Tony
But should you be able to use ScrollTo (or similar) with jqGrid?
I wasn't very successful when I tried the other night.
Currently this
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?
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?
Impressive! When will that version be out?
And just to be sure. You are responding about the insertRowData, right? The draggables idea is not implemented, I recon. (I saw that mentioned in another thread).
But can you answer this also? I can't find a method to give me the current number of rows in the grid, only the initial number.
Isn't there a method to give me this?
Finally I had a little time to test this.
You're right, it's easy. I put
jQuery('…').editRow(id,true,fieldfunctions);
in onSelecctRow. And in fieldfunctions:
jQuery(“#”+id+”_field1″,”#…”).datepicker({dateFormat:”yy-mm-dd”});
jQuery(“#”+id+”_field2″,”#…”).autocomplete(…etc etc
This is just great!
julizar, do you mind sharing your code?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top