Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rochard White on Nov 13, 2008 08:13
open dhtmlx forum
dhtmlx text area

Hi,

i am using a dhtmlx window, with a dhtmlx toolbar. i then need to have something that works like a text area inside the window where i can display data but it is not editable. i also need to change the background colours etc...

I need the height to be a fixed height, and if the text goes over this height then a scrollbar appears so the user can scroll down the text area

i need this to work in very much the same way as a normal text area. will any of your products service this purpose or shall i use a text area and then use the attach object method to attach it to the window?

thanks for your help

richard
Answer posted by Support on Nov 14, 2008 05:13

Hello,

>> i then need to have something that works like a text area inside the window where i can display data but it is not editable
We can't reproduce this bug. Fields are editable on our side (just cursor hidden in firefox).
Could you please attach your demo?

>> i also need to change the background colours
Edit the dhtmlxwindows_[%skinname%].css file. You need to edit the following styles:
...dhtmlx_wins_body_content {
    background-color: #...;
}
There are several styles ended with dhtmlx_wins_body_content (for active/inactive window, etc)

>> I need the height to be a fixed height, and if the text goes over this height then a scrollbar appears so the user can scroll down the text area
You need to set style="width: 100%; height: 100%; overflow: auto;" to your container for this.
For the text-area you can use dhtmlxEditor.
You can fine demo here: http://dhtmlx.com/docs/products/dhtmlxEditor/index.shtml
and here: http://dhtmlx.com/docs/products/dhtmlxWindows/samples/components/editor.html?un=1226668548000
Answer posted by Richard White on Nov 14, 2008 05:18
Hi,

i dont have a demo and dont have any bugs for you to reproduce. In fact i dont think you quite understood my question, but do appreciate the links you have sent as they do help me to understand this.

basically, is it possible to set the height of an individual row in a grid, regardless of how much text is in it?

thanks
Answer posted by Support on Nov 14, 2008 06:16
>> is it possible to set the height of an individual row in a grid, regardless of how much text is in it?
You can define it through row@style in xml

<row style='height:99px;' ...

or by js as 

grid.setRowTextStyle(id,"height:99px;")

Beware, that you need to have multiline mode enabled if you want to use such custom-sized rows in smart-rendering mode. 

Answer posted on Nov 14, 2008 06:42
excellent, thanks very much