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_TopicIcon
Action buttons in grid - how should colModel be configured
07/03/2009
10:01
Avatar
jnavratil
Member
Members
Forum Posts: 23
Member Since:
12/02/2009
sp_UserOfflineSmall Offline

I'm trying to put edit/delete buttons in the grid using the "Custom Edit" demo as an example.  I'm running into the "elem[0] is undefined" problem which I understand to be a mismatch between the colModel and the dataset returned from the server.

How should one configure the colModel when there is no relation between the column of action buttons and a column in the database?

09/03/2009
02:49
Avatar
mpasteur
Member
Members
Forum Posts: 4
Member Since:
09/03/2009
sp_UserOfflineSmall Offline

hi,

just do as written in the demo. Add a column in your colNames property and add a column in your colModel property and that's all.

        colNames:['Module','Actif','Modifier','Supprimer'],
        colModel:[
            {name:'name',index:'name', width:150, editable:true, editoptions:{size:30}},
            {name:'actifStr',index:'actifStr', width:150, editable:true, edittype:"checkbox", align:'center',editoptions: {value:"Oui:Non"} },
            {name:'modif',index:'modif', width:40,sortable:false, align:'center'},
            {name:'suppr',index:'suppr', width:50,sortable:false, align:'center'}

        ],

my "modif" and "suppr" columns doesn't exists in my database nor in the server's response.

regards,

marc

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
53 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