Version 1.5.2 works fine, 2.1.2 fails

QuestionsVersion 1.5.2 works fine, 2.1.2 fails
Alberto asked 8 years ago

Hi!

I have 3 colums like this:

//DATE
$col = array();
$col["title"] = "FECHA"; // caption of column
$col["name"] = "t_fecha"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["width"] = "12";
$col["editable"] = true;
$col["formatter"] = "date";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d/m/Y');
$cols[] = $col;

//START HOUR
$col = array();
$col["title"] = "HORA"; // caption of column
$col["name"] = "t_hora"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["width"] = "8";
$col["editable"] = true;
$col["formatter"] = "datetime";
$col["formatoptions"] = array("srcformat"=>'H:i:s',"newformat"=>'H:i',"opts" => array("timeOnly" => true, "timeFormat"=>"HH:mm","controlType"=>"select","stepMinute"=>15));
$col["editoptions"] = array("defaultValue"=>'00:00');
$cols[] = $col;

//FINAL HOUR
$col = array();
$col["title"] = "HFIN"; // caption of column
$col["name"] = "t_horafin"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["width"] = "8";
$col["editable"] = true;
$col["formatter"] = "datetime";
$col["formatoptions"] = array("srcformat"=>'H:i:s',"newformat"=>'H:i',"opts" => array("timeOnly" => true, "timeFormat"=>"HH:mm","controlType"=>"select","stepMinute"=>15));
$col["editoptions"] = array("defaultValue"=>'00:00');
$cols[] = $col;

Using version 1.5.2 of jqgrid_dist.php, it works fine. But, if I use version 2.1.2 when clic on HOUR START in edit form, and try to select an hour, it appears calendar to select a date.

Thanks

1 Answers
Abu Ghufran answered 8 years ago

if you are using more than 1 datepicker/timepicker controls, jqmodal should be false,

$grid["add_options"]["modal"] = false;
$grid["edit_options"]["modal"] = false;

$g->set_options($grid);

Your Answer

16 + 11 =

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?