Is there any way to have two columns in the get_dropdown_values. I have along list and need to show the ID No. with Name in the same dropdown.
Thank you in advance.
Dear Abu Ghufran,
Thank you for your reply. The dropdown is work with two columns.
I use the following:
$str = $grid->get_dropdown_values("select distinct applicant_id as k, concat(applicant_id , ' – ', applicant_name) as v from applicants");
When add a new record i got "undefined" as a default value in the dropdown.
Is there anything wrong?
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?