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.
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);
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?