Hello,
Do you want to populate the values only once or every time you open the form?
Regards
Tony
Hello,
Before trying getRowData you should use getDataIDs – something like this
var rids = $(“#mygrid”).getDataIDs(); // this give you all ids in grid
for(var i=0;i<rids.length;i++) {
var currentrow = $(“#mygrid”).getRowData(rids);
// here your code to appent currentrow in array
}
Hope this helps
Regards
Tony
Hello,
I just have a initial work on this.
Regards
Tony
Hello,
Thank you for this code. I will look at it.
Regards
Tony
Hello,
1. It is very natural that the data must be saved first and then perform the sort. otherwiese what you recommend to do? Also this is a idea to add a event beforeSortCol – if this event return true we can sort otherwiese no. This will solve meybe your problem.
4. The array structure is:
result = [ {id:rowid1, name1:value11….},
{id:rowid2, name1:value21….},
…
]
where the name is the name from colModel
Regards
Tony
Hello,
look at the demo page json subgrid. Maybe you miss here to obtain the parameter using $_GET –
Regards
Tony
Hello,
Yes you can do that using editoptions. Here you can put all possible attributes to the element- this can be something like
Hello,
I hope that there are no more such code 
Regards
Tony
Hello,
Try
..jqGrid({
…
page: 2,
…
})
Regards
Tony
Hello,
Thank you for this. Will be fixed. Never think that you use addRowData.
Regards
Tony
Hello,
In order to have something in the subgrid, you should configure
server.php to return the needed data. Read the docs how to do that.
Regards
Tony
Hello,
Did you have respnse from the server when you click on the plus.
Also what data return the script in subgrid.php
Check your query for the subgrid.
Also look at the examples how to configure.
Regards
Tony
Hello,
You can do that.
1. You can define in the index multiple names something like
index: ” name1 name2″ – this string will be send to the server and you
can get it and sort appropriate way.
2. Use onSortCol to do that – also you can check example how
we can sort on hidden fields – the things are the same.
Regards
Tony
Hello,
Sorry but I do not understand what you try to do.
Regards
Tony
Hello estevan,
Here we discuss jqGrid problems and not how to post data server side.
Also good start will be in this case php.net
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top