I already did it…!
Use the afterSubmit event….
Sorry Tony,
I still receive the row number as id and not the primary key value…
My jsonReader is:
jsonReader: {
I do not understand what you mean for “treat them as the event” but you can capture the selected row and the data inside it, say
onclickSubmit: function(params){
var gsr = $(”#grid_id”).getGridParam('selrow');
var sdata = $(”#grid_id”).getRowData(gsr);
}
HTH
I apply those changes to my code but still I received the row num instead the primary key in the id parameter in an “edit” action. I build my json data as :
Again, Tony, thanks a lot …!
It works like charm…
Hi.
My colModes is as follows:
Thanks a lot Tony…
Well, I solved the first one. But I stumped with the second one…
Also I add two “custom buttons” to my navigation bar, to export the data to excel and PDF and I would like to use the same servlet that i use for the other operations so how can I use the same url and the “oper” variable to do this ?
TIA
Thanks Tony.
I discover this code must be before the grid definition…
Am i right ?
I found the answer for question 2 in this forum
http://www.trirand.com/blog/?page_id=18/help/to-get-server-answer/page-1
Thanks
Some hints for the first one ?
You can upload the excel file, process it in the server using POI or JExcelAPI and them return XML or JSON to the grid…
HTH
Yamil
Sorry for be so borring but I found the problem…
As a newcomer i print the manual and read it using the “Creating your First Grid” as guide.I copied the script lines to my jsp.
Tony, Do you see the problem ? it is “jquery.jqModal.js” and must be “jqModal.js”
Please update the docs and thanks for your support
Tony, I rearranged my code as follows:
Thanks Tony for your support.
Yes,I was my mistake but in my navigation bar does not appears the “Find” and “Reload Grid” icons,
however the other icons (next, previous, etc) correctly appears. My grid definition is
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top