$g->select_command

Questions$g->select_command
Chao Shun Jenq asked 10 years ago

Hello,

May I use JS code to set the "$g->select_command"?

Rgds,

4 Answers
Abu Ghufran answered 10 years ago

Hello,

No, it is managed from PHP server side.
If you can explain the whole scenario, i can suggest some alternate.

Regards

Chao Shun Jenq answered 10 years ago

For example,
I want to add two buttons in the toolbar.
When I click the button A,
I want to show the column of "gender" equal to "male".
When I click the button B,
I want to show the column of "gender" equal to "female".

Rgds,

Abu Ghufran answered 10 years ago

You can add custom toolbar buttons. refer demos/appear/toolbar-button.php
And, to filter the grid based on some value using JS, refer demos/search/search-form.php

You can copy the search-form js code and put it inside onclick event of custom button.

Chao Shun Jenq answered 10 years ago

I understand!
Thank you for your replied
Rgds,

Your Answer

15 + 16 =

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?