Forum



14:23

08/09/2010

Hi everybody,
I need your help. I want to change the width of a column after I clicked on a cell. Why?
The grid shows "short" values and when I click on a cell, the edit mode will be started with drop down boxes showing the "long" value to make it more easy to the user to understand the value.
The following code changes already the column header - but leaves the rest of the column at the old width.
colWidth = $( ".edit-cell select" ).css('width');
$('#col_name').css("width", colWidth + "px");
var colId = iCol-2;
if (columnHeader[3][colId] == true) {
$( ".edit-cell select" ).jec({useExistingOptions: true});
}
},
I also found a function called...
...but it doesn't work (maybe because I don't know how to use it)
I also analysed the jqgrid source for the resize-stop event and found:
$('table:first',this.bDiv).css("width",p.tblwidth+"px");
$('table:first',this.hDiv).css("width",p.tblwidth+"px");
But I don't know how to use it 🙁 Yes ok, I'm still a little bit new to jqgrid.
Thank you very much for your help.
Sebastian
Most Users Ever Online: 715
Currently Online:
133 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