Forum
Hello jqGrid team,
some time ago, in times of v 3.4.4, I suggested a way to fix the "dirty" solution employed by jqGrid when it creates an <INPUT> during inline cell editing and sets its width to 98%, trying to prevent it from sticking out of the cell. Now I can't find that my post in the forum, and I see my fix did not make 3.5, so I wonder, would you consider it for 3.6? I mean, setting an input width to 98% does not really fix the problem. Depending on the padding/borders set by CSS, the input might still stick out of the cell, as it was in my case...
So, the solution is:
1) wrap input in the <div class="twrap">;
2) the CSS is:
.scroll .twrap input, .FormGrid .twrap input { border:0 none; padding:0; width:100%; }
so borders (imho not necessary if the selected row background is dark enough but always possible) and padding are moved to the wrapper;
3) the following adjustments in the code are necessary to support the wrapper:
in grid.celledit.js
becomes
in grid.common.js
becomes (2 occurences)
in grid.formedit.js
becomes
in grid.inlinedit.js
becomes
Voila. Works in all browsers. I employ it in a big project, so far so good. Hope you find it useful.
cheers,
snobo
Most Users Ever Online: 715
Currently Online:
70 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