Yes you should add a url to returned data.
This forum will be changed soon.
Regards
Sorry this event is not documented.
Regards
Use a loadError Event in the params, something like
loadError: function (xhr,st,err)
{
..
}
See docs
Regards
Thanks,
I will corect this
Regards
Tony
If you want to run this way you should not define
function SaveRecord()
{
…
}
but
var SaveRecord = function() {
…
}
Regards
Tony
Setting the 100% height of the table means the table will occupy 100% of the available space vertically. Here available space means space of it’s parent control.
Not sure if this will work, but try to set a table in div which height is 100%
Something like
div style=”height:100%”
table id=”mygrid”
end div
A interesting article can be found here:
http://apptools.com/examples/tableheight.php
Regards
Tony
Reg,
I will check the second note. As usual IE has its own standarts.
Regards
Tony
Reg,
This not a bug, but feature 🙂 (it is a way you set it in onSelectRow)
Lets look in onSelectRow event – I suppose you use the code provided in the examples – right?
onSelectRow: function(id) {
if(id && id!==lastsel){
jQuery(‘#rowed3’).restoreRow(lastsel);
jQuery(‘#rowed3’).editRow(id,true);
lastsel=id;
}
}
What is here? You select a row – the condition is that the id is selected and this id is not equal to the last selected row – lastsel.
You make some changes and press enter to save the row. After this the last selected row lastsel is equal to the id, but you stay on this row.
You try to edit it again, but surprise it is not editable since of this condition – if(id && id!==lastsel).
I leave this open to you haw to overcome this.
Regards
Tony
phipps73,
Not sure that this will work, but you can try this.
In editurl set a dummy existing file to the server, then use a beforeSubmit event construct and send a js function to the server with the data.
Regards
Tony
wzhyu,
You can do this in the returned data – i.e the returned data should contain a href link to a page.
Regards
Tony
julizar,
I think – yes. First set in editurl a dummy existing file in the server.
Then after the row is saved you can use getRowData method to obtain the changed values. This is array of type name:value. So after this you can iterate the array and make the appropriate xmlstring.
Regards
No need to do that.
You just need to pass xmlObj.responseText as data string
Kind regards
Tony
To save the row I use jQuery $.post with 3 params – the url, the array that is posted, and the callback. So my question is: Which version of jQuery do you use?
Regards
Tony
The problem is here:
jsonReader: {
repeatItems: false,
memberid:”0″
}
Should be
jsonReader: {
repeatItems: false,
id:”memberid”
}
Or better:
…jQgrid({
….
colModel[{name:’memberid’,key:true…..}
…..
],
…..
jsonReader: {
repeatItems: false,
}
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top