Hello,
If you provide a translation I will include it. Sorry I do not speak and write Chinese
Best Regards
Tony
Dear tim,
It seems that you have concentrate more on what jqGrid does not have, rather than to investigate the methods and properties how to avoid some bugs in datepicker. (As I known the datepicker will be rewritten).
As of my previos comment and the coment from other user here is one gracefully solution for your problem, referring this:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing
afterEditCell : function (id, name, value, iRow, iCol) {
$(“#”+iRow+”_”+name).datepicker({/* put here your options including showOn too*/});
// or simple $(“:input[name=”+name+”]”)….
}
Enjoy
Tony
Hello,
when set showOn in datepicker it does not work. If you remove this option it will work. The problem is that the element is not inserted in the dom and datepicker does not know what to do – ie. where to put a image. Follow the solution of AdytmRO
Regards
Tony
Hello,
Good start is a documentation.
Reagrds
Tony
Hello,
What is the purpose of the overlay plugin. Check the value of wrap? What you want to get?
Regards
Tony
Hello,
Did you see this behaviour in the demo? Do you have custom theme? Which version of jqGrid is used?
Regards
Tony
Hello,
Check the docs, there is such option
Reagrds
Tony
You do:
|
1 |
$('#list',elem).datepicker(<br />Should be<br />$(elem).datepicker(...<br /><br />Please befor posting this youi chack all the docs and you your code is error free<br />Regards<br />Tony |
Adain
|
1 |
....<br /> |
Sorry It seems that posting sometime code is difficult
Check your code You have at last line
|
1 |
$(document).ready(function(){<br /> jQuery("#list").jqGrid({<br /> url: 'tree-json', <br /> datatype:'json',<br /> forceFit:true,<br /> cellEdit:true,<br /> cellsubmit:'remote',<br /> cellurl: 'budget-handler',<br /> treeGrid: true,<br /> ExpandColumn:'thing',<br /> colNames: ["NAMES","DATE"],<br /> colModel: [{name: 'thing', index: 'thing', width: 220, hidden: false, sortable: false},<br /> {name: 'myDate', index: 'myDate', width: 120, sortable:true, datefmt:"d/m/Y", editrules:{minValue:0, date:true},<br /> editable:true, sorttype:"date", editoptions:{size:8, dataInit:function(elem){$('#list',elem).datepicker({dateFormat:'dd/mm/yy', showOn:'button', buttonImage:'css/images/calendar.gif', buttonImageOnly:true});}}}<br /> ],<br /> height: 300,<br /> width: 400,<br /> imgpath: 'css/sunny/images', <br /> caption: 'My Things!', <strong><---- ERROR</strong><br /> });<br />});<br /> |
Hello
|
1 2 3 |
$(document).ready(function(){<br /> jQuery("#list").jqGrid({<br /> url: 'tree-json', <br /> datatype:'json',<br /> forceFit:true,<br /> cellEdit:true,<br /> cellsubmit:'remote',<br /> cellurl: 'budget-handler',<br /> treeGrid: true,<br /> ExpandColumn:'thing',<br /> colNames: ["NAMES","DATE"],<br /> colModel: [{name: 'thing', index: 'thing', width: 220, hidden: false, sortable: false},<br /> {name: 'myDate', index: 'myDate', width: 120, sortable:true, datefmt:"d/m/Y", editrules:{minValue:0, date:true},<br /> editable:true, sorttype:"date", editoptions:{size:8, dataInit:function(elem){$('#list',elem).datepicker({dateFormat:'dd/mm/yy', showOn:'button', buttonImage:'css/images/calendar.gif', buttonImageOnly:true});}}}<br /> ],<br /> height: 300,<br /> width: 400,<br /> imgpath: 'css/sunny/images', <br /> caption: 'My Things!', < <hr class="bbcode_rule" /> ERROR HERE<br /> });<br /><br />});<br /> |
Hello Renso,
Could you please download the latest from GitHub and test. There was a bug in setSelection when we have special chars as id.
Thanks
Best Regards
Tony
Hello Roger,
Thanks for this. Will look definitley at this. Trying to google it seems that there is a bug in WebKit (but only comments, no clear explain). I will try to investigate the problem deeper.
Best Regards
Tony
Hello,
Could you please first try with
gridComplete: function(){
alert(“GridComplete”);
}
If this works for every request, then maybe the problem is here
$(”a[rel]“).overlay(function() {
Hello,
Short – you can look in grid.celledit.js and especially the method GridNav.
This methiod can be extend to support what you want.
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top