edit hidden columns in form view

Questionsedit hidden columns in form view
miro asked 7 years ago

Hello,
is it possible to edit hidden column?
here is example:
– column must be hidden in the grid
– column must be visible and editable in the form

thank you

9 Answers
Abu Ghufran answered 7 years ago

When we want to hide it on grid list, and display it on Add or Edit forms.

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

pasted from /docs.

miro answered 7 years ago

Thank you, and sorry 🙂 too many hours in work

I finding it in jqdrid documentation, I try it and dont work for me.

my fault…

Abu Ghufran answered 7 years ago

Pasted from docs …

#### Hiding Column
At instance, we don't want to show column in grid (like primary key), and it is equally needed for background operations like update or delete.
`hidden` property can work here.

// don't show this column in list, but in edit/add mode
$col["hidden"] = true;

Another scenario is we want to hide it on grid list, and display it on Add or Edit forms.

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

Yamil answered 7 years ago

Hello,
I'm creating a plugin for wordpress, the plugin only works on the back end.
When I try to use phpgrid only shows me the json object.
In my first line of my plugin I'm writing this:
include (".. / wp-content / plugins / pluginHojaAtencion / new-technician / lib / inc / jqgrid_dist.php");
But when I see the source code of this line is after the. Js and css includes default wordpress.
You know any way to fix this.
Because according to what I read in the forums you request to include include (".. / Wp-content / plugins / pluginHojaAtencion / new-technician / lib / inc / jqgrid_dist.php") before an echo.

Waiting for your feedback.

peter mostmans answered 7 years ago

Well, it isn't working for me either

Anything else that needs to be done except that line ?

It does actually hide the column on the grid, but it's not showing up when doing Edit.

Abu Ghufran answered 7 years ago

Yes, it works with add dialog too. It would show this field in add/edit dialogs and hide in list.

Another option is to use 'show' property
$col["show"] = array("list"=>true, "add"=>true, "edit"=>true, "view"=>true);
$cols[] = $col;

Above property is available in latest build of full version now.

DOes this also work with the ADD RECORD button? I mean does it show all fields but hide them in grid?

kim answered 5 years ago

hi.

this works:
need to display field in all modes: list, add, edit, view
$col["show"] = array("list"=>true, "add"=>true, "edit"=>true, "view"=>true);

but,
how to force read-only in mode: list, add, edit, view?

thanks.

Your Answer

2 + 20 =

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?