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
unable to edit row Using Event feature
17/12/2009
10:50
Avatar
kikz4life
Philippines
Member
Members
Forum Posts: 14
Member Since:
15/10/2009
sp_UserOfflineSmall Offline

hi,

im integrating jqgrid with CI, done that in this http://www.trirand.com/blog/jq.....grid.html#

but i am unable to get it the edit row in the event feature. I've done all necessary procedures.. btw- i am able to populate my grid using json datatype.

anyone please help me. ive spent 4hr figuring this out

thanks in adv

-DeanCry

17/12/2009
19:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Nobody will help you if you just say not work.

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.

18/12/2009
10:22
Avatar
kikz4life
Philippines
Member
Members
Forum Posts: 14
Member Since:
15/10/2009
sp_UserOfflineSmall Offline

 var lastsel;
 $("#listFlex").jqGrid({
         url: root + mod + '/listview2',
         datatype: "json",
         colNames:['Role #','Role Code','Role Description'],
         colModel:[
                      {name:'role_id',index:'role_id', width:50, align:"center"},
                       {name:'role_code',index:'role_code', width:80},
                       {name:'role_desc',index:'role_desc', width:100,align:"left"}
               ],
         rowNum:10,
        rowList:[10,20,30],
        pager: '#pager2',
        sortname: 'role_id',
        width: 700,
           height: "200",
        viewrecords: true,
        sortorder: "asc",
        editurl: "sec_role",
        caption: "Using events example"
        }); //jQuery("#listFlex").jqGrid('navGrid','#pager2',{edit:true,add:true,del:true});
 jQuery("#ed4").click( function() {
                jQuery("#listFlex").jqGrid('editRow',"1");
                this.disabled = 'true';
                jQuery("#sved4").attr("disabled",false);
                });
 
 jQuery("#sved4").click( function() {
                jQuery("#listFlex").jqGrid('saveRow',"1", checksave);
                jQuery("#sved4").attr("disabled",true);
                jQuery("#ed4").attr("disabled",false);
                });
 
 function checksave(result) { if (result.responseText=="") {alert("Update is missing!"); return false;}
                 return true; }

this is my code in js. im unable to save, edit or even delete the row.

ANY POINTERS WILL DO., im really frustrated here :((

thanks

26/12/2009
11:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You missed a important part in the colModel. I do not see where you define that the field is editable.

Also to work this you should set editable:true ion colModel.

I recommend you to read first the documentation about editing

http://www.trirand.com/jqgridw.....mmon_rules

Best Regards

Tont

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:
62 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