Date Picker Not Working in Sub Grid

QuestionsDate Picker Not Working in Sub Grid
Anand asked 4 years ago

Hi Abu,

In Subgrid date Picker is not working. But when I run that file separately date picker working, Inside subgrid its not working.

Thank you,

3 Answers
Abu Ghufran answered 4 years ago

I am unable to generate this issue.
Working demo can be seen by adding:

$col["formatter"] = 'date';

in demos/master-detail/subgrid_detail.php line 53 in column of invdate.

http://prntscr.com/c576cs

Also make sure there are different field names if using multiple date fields.

Anand answered 4 years ago

Hi Abu,

I checked it. Date Picker not working for me in sub grid.

Here I have added my code and also mailed screenshot to your gmail id.

$col = array();
$col["title"] = "Remainder Dt.";
$col["name"] = "remainderdt";
$col["editable"] = true;
$col["search"] = true;
$col["isnull"] = true;
$col["width"] = "60";
$col["formatter"] = "date"; // format as date
$col["editrules"] = array("edithidden"=>true,"required"=>true);
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'Y-m-d');
$col["formoptions"] = array("rowpos"=>"3", "colpos"=>"2") ;
$col["show"] = array("list"=>true,"edit"=>true,"add"=>true);
$cols[] = $col;

<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="phpgrid/lib/js/themes/redmond/jquery-ui.custom.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="phpgrid/lib/js/jqgrid/css/ui.jqgrid.css"></link>
<script src="phpgrid/lib/js/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="phpgrid/lib/js/jquery.min.js" type="text/javascript"></script>
<script src="phpgrid/lib/js/jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="phpgrid/lib/js/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="phpgrid/lib/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="homebutton.css"></link>
<link rel="stylesheet" href="select2.css">
<script src="select2.min.js"></script>
<link href="jquery.tagit.css" rel="stylesheet"></link>
<script src="tag-it.min.js"></script>

Thank you,

Abu Ghufran answered 4 years ago

I tried to generate this issue again, but it's working as expected.
If you can arrange a remote session some time i can check.
Setup http://join.me and email me feasible time.

Your Answer

16 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?