Show Details of 25 columns

QuestionsShow Details of 25 columns
Gary Brett asked 10 years ago

Hello there, IU have a table with 25 columns that will be used simply for viewing archived data, no add, edit etc.. On the main grid I just want to show 6 columns but allow the uses to click a row to pop up the extended details showing all 25 fields, is this possible at all?

I looked at Master demo but again there are 2 many columns to display in a grid, need it like a static add new record form with all fields displayed

Thank you..

7 Answers
Gary Brett answered 10 years ago

Hi, not sure this is the correct method but it works if I add this to each hidden column on the grid..

$col["editrules"] = array("edithidden"=>true);

Thanks

Abu Ghufran answered 10 years ago

This remove from list, but shows in add/edit/view.
If your grid is readonly, following would suffice.
$col["editrules"] = array("edithidden"=>true);

Otherwise, you can just set:
$col["show"]["list"] = false;

Remove $col["hidden"] = true; if it is there. This would hide it through out.

Gary Brett answered 10 years ago

Thanks Abu, just for reference is there any way to view all table without setting edit to true as above? Guess I am wondering if I can maybe create a link on client name for example which would pop up a form all that rows data in, regardless of the cols hidden? Giving users access to edit would bypass the read only?

Abu Ghufran answered 10 years ago

You can still set following with editable to false.
$col["show"]["list"] = false;
$col["show"]["view"] = true;

Gary Brett answered 10 years ago

Hi Abu, I added the below to the page and set edit to false, should there be a an icon in actions columns to allow me to view details?

$col = array();
$col["title"] = "Title"; // caption of column
$col["name"] = "Title"; // grid column name
$col["show"]["list"] = false;
$col["show"]["view"] = true;
$cols[] = $col;

Abu Ghufran answered 10 years ago

Currently view icon is not there with row, Instead you can select and click toolbar button.
You can also connect dblclick row with view dialog show.

Refer: How to show "Edit Record" or "View Record" dialog on row double click / Show dialog on row edit button? in FAQs

How-Tos & FAQs

Gary Brett answered 10 years ago

Brilliant Abu, that is perfect

Your Answer

9 + 13 =

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?