ok. will try the version from Github
Thank you!
Kris
Thank you Will!
datatype is local
Thank you!
Hello Will,
The code works fine when grouping is set to false
yes, I understand cellattr is not a problem, I believe the problem – is with rdata parameter. When cellattr is being processed for every row – grouping header/row does not have rdata object.
I had to specifically add a check and now it works.
1 2 3 4 5 6 7 |
,cellattr : function(rowId, cellValue, rawObject, cm, rdata) { if(rdata !== 'undefined' && Array.isArray(rdata)){ if(rdata.ysnSub == '1'){ return " class='eg-ct-badge-blue'"; } } } |
Thanks,
kris
Guroddo customer
Thank you for solution regarding background color.
Here’ s a link
http://50.53.70.243:90/jqgrid/gridGroupingData.php
you will see in code that columns – dblOrdered and curSalePrice – have cellattr function – if I remove the cellattr – then grouping summary renders correctly.
I believe the problem is rdata parameter is undefined for the grouping rows – this is what might be causing the issue.
Thanks,
Kris
one way I was able to get rowid – is to save the rowid to a variable on beforeEditCell and use it in dataInit. Is there another way?
Also, seems like documentation is missing info about passing parameters to dataUrl when using select.
1 2 3 4 5 6 7 |
editoptions: { dataUrl: '/getSelect.html', postData: function (rowid, value, cmName) { return { myId: rowid } } |
Thank you!
Hello Will,
I will check with our team and let you know soon.
Kris
Thank you Will. I considered the toolbar option, in this case I would need to add seperate form fields above each column.
The grid I am using does not need search funcitonality, so I was able to use the filtertoolbar (search toolbar) – and set the autoSearch to false. created elements like date picker, select, etc on dataInit – used the event to update the grid columns.
It would be nice to be able to clone the filter toolbar row and then add custom actions in situations where search is required. Is this possible?
Kris
Thanks Will.
I was able to use saveState to save it into local storage. Then I used a my custom loadState function to apply to only info I needed.
For example: I only needed to restore colModel, if user changes it by hiding or showing columns and sort order and sort name
What I did is set the use a custom getState function to get state from localStorage and apply colModel,sortname,sortorder before building the grid.
Kris
Thank you! we will test it out.
Kris
Just checking in to see if any progress on this
Thanks,
Kris
Thanks for the info. If I think of way, will report here.
Kris
Hi Will,
Thank you for the reminder about using the latest dev code from github, my bad.
I have reverted back to released v5.3.0
Kris
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top