Select columns in grid

QuestionsSelect columns in grid
Stephen Hartigan asked 12 years ago

Hi,

I purchased the Grid Control today and was just wondering is there an easy way to allow the user to select which fields to display in the grid. I have a table with a lot of fields (over 40) and the users needs to decide which ones to view.

Thanks in advance,

Stephen

1 Answers
Abu Ghufran answered 12 years ago

Hello,

There is an option of 'showhidecolumns', but limitation is that it does not persist it's state on browser window refresh.

$g->set_actions(array(
"add"=>false, // allow/disallow add
"edit"=>false, // allow/disallow edit
"delete"=>true, // allow/disallow delete
"rowactions"=>true, // show/hide row wise edit/del/save option
"showhidecolumns"=>true, // show/hide export to excel option
"autofilter" => true, // show/hide autofilter for search
"search" => "advance" // show single/multi field search condition (e.g. simple or advance)
)
);

Your Answer

11 + 2 =

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?