Forum

July 12th, 2025
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
Error: "no URL is set" when using cellEdit
02/03/2010
06:17
Avatar
cdukes
Member
Members
Forum Posts: 13
Member Since:
24/11/2009
sp_UserOfflineSmall Offline

Hi,

Can someone please let me know what I'm doing wrong?

When I use the following code, I get an error ("no url is set") when I submit the cell edit.

function getWidthInPct(percent){
        screen_res = ($(document).width())*0.99;
        col = parseInt((percent*(screen_res/100)));
            return col;
    }

// Admin table
var admingrid = jQuery("#sadmin_table").jqGrid({
url:'includes/ajax/json.sadmin.php',
datatype: "json",
height:'auto',
width: getWidthInPct(99),
rownumbers: false,
 colNames:['Name','Value', 'Type', 'Options','Default','Description'],
    colModel:[
        {name:'name',index:'name', width:40, editrules:{edithidden:false, required:true}, editable:false},
        {name:'value',index:'value', width:30, editable:true},
        {name:'type',index:'type', width:20,editable:true, edittype:"select",editoptions:{value:"enum:enum;int:int;varchar:varchar"}
},
        {name:'options',index:'options', width:20, editable:false},
        {name:'default',index:'default', width:30, editable:false},
        {name:'description',index:'description', width:280,editable:true,edittype:"textarea", editoptions:{rows:"10",cols:"40"}}
    ],
    gridview: true,
    emptyrecords: "No Results Found",
    forceFit: true,
    rowNum:10,
    rowList:[10,20,30,40,50],
    sortname: 'name',
    viewrecords: true,
    sortorder: "asc",
    cellEdit: true,
    editurl: 'includes/ajax/json.sadmin.php?edit=1',
    mtype: "POST",
    pager: '#sadmin_pager',
    recordtext: "{0} – {1} of {2}",
    pgtext: "",
    });
// resize_sadmin_grid();
$(window).resize(resize_sadmin_grid);

// Set pager options
jQuery("#sadmin_table").jqGrid('navGrid','#sadmin_pager',{add:false,edit:false,del:false,search:false,refresh:false});
// Remove rollup icon
$('.ui-jqgrid-titlebar-close','#gview_sadmin_table').remove();

05/03/2010
12:49
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please refer here:

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

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.

06/03/2010
07:25
Avatar
cdukes
Member
Members
Forum Posts: 13
Member Since:
24/11/2009
sp_UserOfflineSmall Offline

I've read through that - I also just finished reading your 127 page pdf doc. I can't seem to find any examples of the php backend I need to make this work?

I have the grid set up, but when I save the cell, nothing is POST'ing to my php file. Is there any documentation that provides examples?

09/03/2010
19:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This is out of jqGrid forum. Imagine what will say people that use ASP or JSP ....

I'm not expert of these. You have the api, you know what is posted, then get the post and do it your way with PHP

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.

09/03/2010
19:53
Avatar
cdukes
Member
Members
Forum Posts: 13
Member Since:
24/11/2009
sp_UserOfflineSmall Offline

That's the problem, I don't know what's posted, all I show is this:

_search: false
nd: 1268108970517
rows: 10
page: 1
sidx: name
sord: asc

So how do I get the select row's ID to post?

22/04/2012
16:42
Avatar
r.thal
Member
Members
Forum Posts: 5
Member Since:
22/04/2012
sp_UserOfflineSmall Offline

Back to your original question about "No url is set", you need to specify the 'cellurl' option (not 'editurl') because you've enabled cellEdit: true.


Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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