I'd like to know if this is possible as well.
+1
Hey Tony,
As I've said in my original post, there is no information about the settings for the xmlReader of a Subgrid as Grid, only
I'm sorry to bump this thread, however I expected this to be a feature which wouldn't only benefit me. This would actually increase the fool-proofness of the entire jqGrid 🙂
So I've found out I should use 'onclickPgButtons' and found a topic here where someone asks for an example and it seems to work for him (or her). However, I can't get it to work. Is there any place where I could get to see some kind of an example of some sort?
My current code:
…
onclickPgButtons: function(which, formid, rowid) {
jQuery('#sData', formid).trigger('click');
Hey Tony, thanks for your reply.
Unfortunately it changed nothing. I'm still unable to fix this issue.
My jqGrid script:
var editValue;
jQuery(document).ready(function(){
jQuery('#Tarieven-Ben').jqGrid({
hidegrid: false,
width: 1810,
height: 220,
xmlReader: {
root: 'Grid',
row: 'Rij',
page: 'Grid>Pagina',
total: 'Grid>Paginas',
records: 'Grid>Records',
repeatitems: false,
id: 'SOID'
},
url: 'functions/jqGridUpdate.php?bronXml=simonlies&queryId=0&sqlTeller=0&bronXml=simonlies',
datatype: 'xml',
mtype: 'GET',
colNames: ['ID', 'Volg', 'Provider'],
colModel: [
{name: 'SOID', index: 'SOID', width: 30, editable: false, editoptions:{readonly:false}},
{name: 'Volgnummer', index: 'Volgnummer', width: 40, editable: true, editoptions:{readonly:false}},
{name: 'Provider', index: 'Provider', width: 55, editable: true, editoptions:{readonly:false}},
],
onSelectRow: function(id){
if(id && id!==editValue){
jQuery('#Tarieven-Ben').jqGrid('editRow', id, true);
editValue=id;
}
},
pager: '#SO-Ben',
rowNum: 50,
rowList: [10, 20, 30],
sortname: 'SOID',
sortorder: '',
viewrecords: true,
caption: 'SimOnlyTarieven',
queryId: '0',
editurl: 'functions/formSave.php?bronXml=simonlies&spreadsheet=1&queryId=0&Naam=Tarieven-Ben'
});
The identification of the grid:
Note the onclick event. Now this is what's behind that call:
Hey Tony,
Thanks! Your solution fixed my problem.
Thanks Tony, your help is appreciated. However, the row loses it's selection but the problem still exists.
I was just thinking of a way to archieve this when I came across your topic. Obviously I would be intrested in more of your changes to the code, and maybe some others as well.
However, I'd like to see this as an future option in jqGrid. The exact same argument on why the OP wanted to archieve this can be applied to my company.
+1, I'm also curious about this possibility. No luck finding any information
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top