Callback & first item

QuestionsCallback & first item
Giovanni Luca Bonelli asked 10 years ago

I'm studing dropdown_callback demo example.
When I add a record, in the edit panel there is a listbox with the names of the clients.
If I choose the 2nd item in list, gender and company inputbox automatically are filled but if I choose the first item (Maria Anders!), I have to fill manually gender and company fields.
Can I call "a callback" when edit panel is opened?
Thankyou.

1 Answers
Abu Ghufran answered 10 years ago

Here is the callback function of edit dialog:

$grid["edit_options"]["afterShowForm"] = 'function(formid) { …………… }';
$g->set_options($grid);

Your Answer

17 + 14 =

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?