Creativebyte,
Thank you very much for this. To be a honest I do not known
of this feature of $.extend. I will add this, but before this I should
do some tests.
Thank you
Best Regards
Tony
You forgot to include the jqModal.css. Please before posting any issue
read the documentation.
Best
Regards
Tony
Not sure that blur event is good. First that I think is:
Enclose the grid (by example) in div tag, then assign click event
to body element except this div and whitin this event use
restoreRow method.
Regards
Tony
Done 
Will consider this in next release (not in the upcomming bug fix)
Regards
Tony
Hi,
I know about all the problems related to grid as subgrid.
Wait for the bug fix release (1-2)day. It correctsthe issues
in all methods when using grid as subgrid.
Regards
Tony
In formedit module I have changed this, but a little problem in
inlineedit module. Will see what can be done
Regards
Tony
Maybe I will explain this in detail.
1. When the grid is constructed we have something like:
…
..
…
After editRow we have
…
So when we call after this setRowData the entry input tag is replaced with the value from setRowData.
Now – one possible solution is those from Reg
$(“#”+id+”_myname”,”#mygrid”).val(“newvaluehere”)
Another solution is to write additional method which will act to this case
Regards
Tony
Peter,
Thank you. Any additions and improvments are welcome. Will be glad to see this and incorporate to jqGrid (where aplicable).
Thank you Peter. Added (with some changes in in upcomming bugfix release)
Regards
Tony
We have here a lot of possible solutions.
1. Setting the values direct via script – here is PHP example:
When you call the page with a grid – call it as php page and not as html
colModel [{….
{name:”mayname”…editable:true,edittype:”select”,
editoptions:{''}…},
…
]
where the variable $myeditoptions holds the values from the db
This is the recommendet solution. If this is not possible
2. We can use the method from previous post. We can cal this after the grid is constructed.It is not too late – why?
$.get(”myurl”,data:mydata,function(result,status){
if (status == “success”) {
// get the result here, suppose that in myselect are the values
$(”#mygrid”).setColProp(”myname”,{editoptions:{myselects}});
…
}
}
3. Another possible solution is to use the userData in jqGrid –
(this is another elegant solution). See userData examples haw to do that.
Then
loadComplete : function() {
// get the userData here and convert it to format supported
// in colModel then the same tehchniquie as from 2
$(”#mygrid”).setColProp(”myname”,{editoptions:{myselects}});
…
}
~Enjoy
Tony
Here is the fix
Humm,
Will check it again. Thank you
Regards
Tony
There are a lot things to do – the bug fix release will be done 21-22 July.
If you can't wait – open grid.base find addRowData method
then find
if (pos === “last”) $(“tbody”,t.grid.bDiv).append(row);
else $(“tbody tr:eq(0)”,t.grid.bDiv).after(row);
replace with
if (pos === “last”) $(“tbody:first”,t.grid.bDiv).append(row);
else $(“tbody:first tr:eq(0)”,t.grid.bDiv).after(row);
Let me known if all is OK
Regards
Tony
Thank's. Fixed
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top