Hasn't anyone implemented this feature in inline edit? Or is everyone just saving previous row when selecting new row no matter if it was edited?
Hi Tony,
I have enabled it, this is part of WCF wrapper class which returns grid configuration:
grid.Configuration.Toolbar = “[true,'bottom']”;
Could it be that because I'm returning a string, grid cannot initialize toolbar?
Regards,
roto
Hi Tony,
Can you tell if it's possible to use toolbar with gridimport? I can keep looking for an solution for this if it is possible somehow. I tried defining it in WCF service, but guess the problem is that it is formatted as string so grid cannot use it to create toolbar.
Regards,
Roto
If gridImport is not defined, I can see toolbar. I also tried setting toolbar in loadComplete -event with
$(“#ArchivedInvoices”).setGridParam(“toolbar”,[true,'bottom']);
But that didn't help either.
Any clues?
Thanks again Tony! I had completely missed such an obvious thing.
Regards,
Janne
Can anyone help me with this one?
Hi Tony,
Sorry for my late reply. I finally got some time to build you an test grid. Originally I was using version 3.6.2, but I tried with version 3.6.3 today with no difference in result.
Here's the string that import returns:
{"grid":{"ajaxGridOptions":{"cache":false},"autowidth":true,"caption":"TestGrid","cellEdit":false,"cellsubmit":"clientArray","colModel":[{"align":"left","editable":false,"editoptions":{},"editrules":{"custom":false,"date":false,"edithidden":false,"email":false,"integer":false,"number":false,"required":false,"time":false,"url":false},"edittype":"text","formoptions":{"colpos":0,"elmsuffix":null,"rowpos":0},"hidden":false,"hidedlg":false,"index":"Id","label":"Id","name":"Id","sortable":true,"sorttype":"text","width":0},{"align":"left","editable":false,"editoptions":{},"editrules":{"custom":false,"date":false,"edithidden":false,"email":false,"integer":false,"number":false,"required":false,"time":false,"url":false},"edittype":"text","formoptions":{"colpos":0,"elmsuffix":null,"rowpos":0},"hidden":false,"hidedlg":false,"index":"Value1","label":"Value1","name":"Value1","sortable":true,"sorttype":"text","width":0},{"align":"left","editable":false,"editoptions":{},"editrules":{"custom":false,"date":false,"edithidden":false,"email":false,"integer":false,"number":false,"required":false,"time":false,"url":false},"edittype":"text","formoptions":{"colpos":0,"elmsuffix":null,"rowpos":0},"hidden":false,"hidedlg":false,"index":"Value2","label":"Value2","name":"Value2","sortable":true,"sorttype":"text","width":0},{"align":"left","editable":false,"editoptions":{},"editrules":{"custom":false,"date":false,"edithidden":false,"email":false,"integer":false,"number":false,"required":false,"time":false,"url":false},"edittype":"text","formoptions":{"colpos":0,"elmsuffix":null,"rowpos":0},"hidden":false,"hidedlg":false,"index":"Value3","label":"Value3","name":"Value3","sortable":true,"sorttype":"text","width":0}],"colNames":[],"datatype":"json","editurl":null,"forceFit":false,"gridview":true,"height":"100%","jsonReader":{"root":"Rows","page":"Page","total":"TotalPages","records":"Records","userdata":"UserData","repeatitems":false,"id":"0"},"loadonce":true,"multiboxonly":false,"multiselect":false,"pager":"#TestGridPager","pgbuttons":false,"pginput":false,"resizeStop":null,"rowNum":-1,"sortable":true,"sortname":"Id","sortorder":"asc","subGrid":false,"toolbar":"[false,'']","treeGrid":false,"url":"/testApp/TestGridService.svc/GetTestGridData?","viewrecords":true},"data":{"Page":0,"Records":0,"Rows":[{"Id":1,"Value1":"Sample","Value2":"Moon","Value3":"Car"},{"Id":2,"Value1":"Test","Value2":"Earth","Value3":"Bicycle"},{"Id":3,"Value1":"Another test","Value2":"Sun","Value3":"Airplane"}],"TotalPages":0,"UserData":{}}}
Grid is imported with this:
$("#TestGrid").jqGridImport({
Thanks Tony, it works great!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top