Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Eu on Mar 24, 2008 06:21
open dhtmlx forum
Value of readonly

Hi

How I know at _DrawHeaderInput function if the input is editable or readonly

Thanks in advanced
Answer posted by Support on Mar 24, 2008 07:04
_DrawHeaderInput is carried out before readonly method can be called.

You can try to set own variable  with editable|readonly mode before call of dhtmlXCombo.
And then you should check this variable in _DrawHeaderInput  method.   
Answer posted by Eu on Mar 24, 2008 07:30

Thanks for your answer

I'm looking for any way to not create _new_value elements if they are not necessary (as in readonly method)

I'll try as you say

Answer posted by Support on Mar 24, 2008 09:04
If you want to not use DOMelem_hidden_input2 property you should take into consideration all its entries (in the _confirmSelection method too).

One remark - the value of DOMelem_hidden_input2 can be "true" in readonly mode  if the new value is set  by  setComboValue  method.