Forum
14:00
03/12/2013
in form editing don't work any of relative events
have i miss something in configuration?
12:07
Moderators
30/10/2007
Hello,
Unfortunatley the current implementation of form editing does not support editurl set to clientArray.
This is a future work.
In order the events to work in FormEditiong you will need to set the editUrl to a valid dummy file (i.e this file only exists on server and nothing more).
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.
17:12
03/12/2013
thanks for the piece of information
i've tried to change the "editUrl" whith http://jsfiddle.net/echo/json/ that i suppose is a valid json dummy dataset even if is empty
but the beforeSubmit method doesn't still work
trying it on my local machine got this:
seems that the call to editUrl was OK[Image Can Not Be Found]
17:16
Moderators
30/10/2007
Hello,
This is a remote request – i.e cross site. Such ajax request are not allowed by default.
In order to do this you will need to set dataType of the edit options to jsonp.
Search the web for tis case.
Also in grid options set
… jqGrid({
…
ajaxEditOptions : { dataType: 'jsonp'},
…
});
Or make in your local server such dummy file
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.
18:12
03/12/2013
ok for my local machine where is a cross site request (forbiden by default)
but
what about under fiddle domain? isn't the same domain?
(http://jsfiddle.net/BDACL/3/ the same domain of http://jsfiddle.net/echo/json/ )
http://jsfiddle.net/BDACL/3/ (i've modified with fiddle updateUrl)
don't kill me if i make stupid questions 🙁
18:12
03/12/2013
ok for my local machine where is a cross site request (forbiden by default)
but
what about under fiddle domain? isn't the same domain?
(http://jsfiddle.net/BDACL/3/ the same domain of http://jsfiddle.net/echo/json/ )
http://jsfiddle.net/BDACL/3/ (i've modified with fiddle updateUrl)
don't kill me if i make stupid questions 🙁
12:41
Moderators
30/10/2007
Hello,
Ok. You will need to do more investigations and read carfully what I write you.This code workn perfectly:
var mydata = [{
name: "Toronto",
country: "Canada",
continent: "North America"
}, {
name: "New York City",
country: "USA",
continent: "North America"
}, {
name: "Silicon Valley",
country: "USA",
continent: "North America"
}, {
name: "Paris",
country: "France",
continent: "Europe"
}]
$("#grid").jqGrid({
data: mydata,
datatype: "local",
colNames: ["Name", "Country", "Continent"],
colModel: [{
name: 'name',
index: 'name',
editable: true,
}, {
name: 'country',
index: 'country',
editable: true,
}, {
name: 'continent',
index: 'continent',
editable: true,
}],
pager: '#pager',
editurl: 'http://jsfiddle.net/echo/json/',
ajaxEditOptions : { dataType: 'jsonp'}
});
var editOptions = {
closeAfterEdit: true,
beforeSubmit: function(z,x) {
alert('does not fire – why?');
}
}
$("#grid").jqGrid('navGrid','#pager',{edit:true,add:false,del:false,search:false},editOptions,{},{},{},{});
I hope you can find the diffrences and you tell me where is the change.
Kind Regards
Enjoy
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.
Most Users Ever Online: 715
Currently Online:
31 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