Forum


15:44

04/12/2008

Gurus,
Please help me resolve this error. I am using jqGrid for the first
time and not able to resolve this error. I am trying to
get InlineEdit work with Latest release of jqGrid. I downloaded
the pack 2 weeks back and since then trying to make this error
go away with no success. Please help me get rid of the error.
I am posting my code here. I am using PHP for my server side
technology.
<link type="text/css" rel="stylesheet"
href="../js/jqgrid/themes/jqModal.css" /> <link type="text/css" rel="stylesheet"
href="../js/jqgrid/themes/basic/grid.css" /> <script src="../js/jqgrid/jquery.js" type="text/javascript"></script> <script src="../js/jqgrid/jquery.jqgrid.js" type="text/javascript"></script> <script src="../js/jqgrid/js/jqModal.js" type="text/javascript"></script> <script src="../js/jqgrid/js/jqDnR.js" type="text/javascript"></script> <script src="../js/jqgrid/js/grid.celledit.js" type="text/javascript"></script> <script src="../js/jqgrid/js/grid.inlinedit.js" type="text/javascript"></script>
<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#OrderList").jqGrid({ url: "orders_to_tasks_view.php?mode=read", datatype: 'xml', mtype: 'GET', colNames:['Order','Customer Name', 'Br Name',
'Ord Date', 'Del Date', 'Del.To', 'Total', ' '], colModel:[ {name:'orderno', index:'order_no', width:50}, {name:'sname', index:'sname', width:180,
editable:true, editoptions: {size:30, maxlength: 180}}, {name:'br_name', index:'br_name', width:80,
editable:true, editoptions: {size:30, maxlength: 180}}, {name:'ord_date', index:'ord_date', width:70}, {name:'delivery_date', index:'delivery_date', width:70}, {name:'deliver_to', index:'deliver_to',width:150,
editable:true, editoptions: {size:30, maxlength: 180}}, {name:'ordervalue', index:'ordervalue', width:80,
align:'right'}, {name:'emptycell', index:'none', width:20} ], pager: jQuery('#orderpager'), width:900, rowNum:10, rowList:[10,20,30], sortname: 'id', sortorder: "desc", viewrecords: true, imgpath: "../js/jqgrid/themes/basic/images", caption: "Open Sales Orders", cellEdit: true, cellSubmit: 'remote', editUrl: "orders_to_tasks_view.php?mode=save" }); }); </script>
<table id="OrderList" class="scroll"></table> <div id="orderpager" class="scroll"
style="text-align:center;"></div> Any help is highly appreciated. I like jqGrid and Thanks a million
for saving tons of coding effort by having this type of plugin
for Jquery.
GO.
12:44

Moderators
30/10/2007

Hello,
What you try to use - cell editing or inline editing?
That are different things.
If you try to use cell editing you should set not
editUrl, cellurl option.
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.
15:10

04/12/2008

Thank you Tony. I corrected my error. There were 2 bugs.
1. I forgot that it is case sensitive. becoz I used 'editurl' and it did not work.
after I changed to editUrl it started to work.
2. As you said, I am trying both the options editUrl and CellEdit. Both of
them are working great.
Thank you for your quick response and great plugin.
Now i am working on search bar and SubGrid.
GO.
Most Users Ever Online: 715
Currently Online:
67 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