Change of column value and row re-sort

QuestionsChange of column value and row re-sort
Gary Wilson asked 2 years ago

Hi.

I have a grid of cars all with a price. One of the cars has an alternative price that I know at run-time. I want to be able to offer an option to the user such as a check box (I can do this bit) which reloads the grid and substitutes the alternative price. Since sort criteria is on descending price, the car will move up or down the grid.

Thanks in advance

Gary

1 Answers
Abu Ghufran Staff answered 1 year ago

You can try checking following demo code (Line 169-184) which puts a checkbox on toolbar for custom filter.

And change select_command query (Line 51-53) based on passed parameter from checkbox.

https://www.gridphp.com/demo/demos/appearance/toolbar-button.phps

Demo: https://www.gridphp.com/demo/demos/appearance/toolbar-button.php

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

11 + 9 =

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?