Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Custom Edit Type
18/10/2011
23:19
Avatar
Rob
Member
Members
Forum Posts: 4
Member Since:
17/08/2011
sp_UserOfflineSmall Offline

I 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);

}

}

20/10/2011
04:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

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.

20/10/2011
14:54
Avatar
Rob
Member
Members
Forum Posts: 4
Member Since:
17/08/2011
sp_UserOfflineSmall Offline

What I mean is the cells are empty and non editable.

20/10/2011
16:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information