Forum
Topic RSS
Related Topics
23:19
17/08/2011
OfflineI am currently trying to use the custom edittype and editoptions. When I call my grid the column with those types comes back blank. I am currently trying to have multiple checkboxes in a cell.
{name:'approval', sortable:false, search:false, resizable:false, editable:true, edittype:'custom', editoptions:{custom_element:myelem, custom_value:myvalue}, align:'center', width: 9 }
function myelem(value,options)
{
var el = document.createElement('input');
el.type = 'checkbox';
el.value=value;
return el;
}
function myvalue(elem,operation,value)
{
if(operation === 'get')
{
return $(elem).find("input").val();
}
else
{
$("input",elem).val(value);
}
}
04:29
Moderators
30/10/2007
OfflineHello,
What you mean with
When I call my grid the column with those types comes back blank
Kind Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
16:21
Moderators
30/10/2007
OfflineHello,
You should maybe receive a error.
The problem may raise if these functions are not visible from the grid.
Please, go into the demo and look into the following example how to realize this:
New in version 3.6 => Create custom input element.
This example run normally
Kind Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 994
Currently Online:
15 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
Log In
Home