开发者

jqgrid date picker problem

开发者 https://www.devze.com 2022-12-22 09:14 出处:网络
For a couple of days now I have been playing around with the jqgrid.I h开发者_JAVA技巧ave been trying to accomplish what is found on this example http://www.the-di-lab.com/demo/apples that is placing

For a couple of days now I have been playing around with the jqgrid.I h开发者_JAVA技巧ave been trying to accomplish what is found on this example http://www.the-di-lab.com/demo/apples that is placing a date picker on the modal form.

So far I have tried to follow what I found on this link but I get a target.getAttribute is not a function error in my ui.datepicker.js script.

Anyone who has done it succesfully?


Don't know if you or someone else is still seeking for an answer. I just realized this by using the editoptions in column definition, like so:

 ... ,editoptions:{dataInit:datepicker}

where datepicker is a function like

 function datepicker (elem) {
  jQuery(elem).datepicker(
      // {} // options here
  );
 };
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号