Dropdown-callback function no more works after last jqgrid_dist.php update

QuestionsDropdown-callback function no more works after last jqgrid_dist.php update
Alexander Toth asked 2 years ago

Also in the demo. I change the name in the dropdown menu, but the fields Gender and Company doesn’t update.
http://www.phpgrid.org/demo/demos/appearance/dropdown-callback.php
Thanks

Abu Ghufran Staff replied 2 years ago

Please share screenshot / related code as well.

Abu Ghufran Staff replied 2 years ago

Ok, i understand the issue now. Will be updating back.

1 Answers
Abu Ghufran Staff answered 2 years ago

Demo is fixed now.
The new callback code syntax support placeholders of columns so this will work:
$col[“editoptions”] = array(
“value”=>$str,
“onchange” => array(
“sql”=>”select * from clients where name = ‘{name}'”,
“callback” => “fill_form” )
);
http://www.phpgrid.org/demo/demos/appearance/dropdown-callback.phps#L.65

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

18 + 7 =

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 / 5. Vote count:

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

Let us improve this post!