View selected row and Edit selected row

QuestionsView selected row and Edit selected row
Danila asked 6 years ago

Hello
Question 1. How is it possible to create in edit selected row window some fields of the field without the ability to make changes (view only).

Question View selected row. How to change the size window view selected row

Thank you.

3 Answers
Abu Ghufran answered 6 years ago

Hi,

I emailed you the helping files. Logging here for community help.

Q1) The readonly option will make it "plain text" instead of "textbox".

Also, you can show/hide field in list/add/edit/view dialog using "show" attribute.

Also override the updated lib.

$col = array();
$col["title"] = "Gender"; // caption of column
$col["name"] = "gender"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["editable"] = true;
$col["editrules"] = array("required"=>true, "readonly"=>true);
$col["show"] = array("list"=>true, "add"=>true, "edit"=>true, "view"=>false);
$cols[] = $col;

Q2) To change dimension of view dialog,

$opt["view_options"] = array('width'=>'520');
$g->set_options($opt);

Eduardo answered 6 years ago

Hi, i'd like the working example for question 2. When i try:
$opt["view_options"] = array('width'=>'520');
$g->set_options($opt);

The dimension of view dialog doesn't change. Why is that?

Abu Ghufran answered 6 years ago

Demo emailed.

Your Answer

8 + 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 / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!