Home › Forums › Guriddo jqGrid JS › Help › Images in grid and sizeable column height
I am new to jqgrid and am needing some help.
I would like to add an Image to each row and set the row height. I have a url for thumnails that are 150
Hello,
Maybe you can use the afterInsertRow event for this purpose.
Also check the parameters for this event. One of them is the id. The id is actuall the tr element. With jQuery it is easy:
$(“#the_id_from_afterInsertrow”).css(“height”,”175px”);
Use the same event to attach your own mouseover event.
Regards
Tony
I have posted my code. I am not sure what I did wrong with this code. I found it in the docs and attempted it. Please Advise…
Thank you for your time, I really appreciate it.
jQuery(document).ready(function(){
I was able to figure it out.
afterInsertRow: function(rowid, aData){
This didn’t work as expected. It didn’t make the row height 175px it made the whole #list 175… I tried this and it doesn’t work.
afterInsertRow: function(rowid, aData){ $(‘#list > tr’).css({height:175}); },
Can someone give me a hand?
afterInsertRow: function(rowid, aData){ $(’#'+rowid).css({height:175}); },
That worked thanks!
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS