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 6 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 6 years ago

Please share screenshot / related code as well.

Abu Ghufran Staff replied 6 years ago

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

1 Answers
Abu Ghufran Staff answered 6 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
Grid 4 PHP Framework
 
Your Answer

16 + 20 =

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?