Hi There,
Max-Length property of TIWCGJQEdit in delphi XE 2 is not working properly in design environment
For example if you bind a db widestring field with length of 20 characters as datalink, you can enter max length of 20 characters and it will work, but if you save your unit and reopen it,
the setting will be lost everytime and default value 0 is reset. In case of using smaller or higher value in max length it will work, but exact field size is not possible.
Example on dfm settings:
1. Setting value for max length:
object IWCGJQEdit1: TIWCGJQEdit
Left = 328
Top = 70
Width = 121
Height = 21
Version = '1.0'
DataLink.DataSource = DM.dsGet_RelationEinzel
DataLink.FieldName = 'Kostenstelle'
Enabled = False
MaxLength = 20
ReadOnly = True
ScriptEvents = <>
end
2. After closing and reopen unit the same field will shown as below without maxlength:
object IWCGJQEdit1: TIWCGJQEdit
Left = 328
Top = 70
Width = 121
Height = 21
Version = '1.0'
DataLink.DataSource = DM.dsGet_RelationEinzel
DataLink.FieldName = 'Kostenstelle'
Enabled = False
ReadOnly = True
ScriptEvents = <>
end
In case of setting value to 21 in first step the setting will still be there on reopen:
object IWCGJQEdit1: TIWCGJQEdit
Left = 328
Top = 70
Width = 121
Height = 21
Version = '1.0'
DataLink.DataSource = DM.dsGet_RelationEinzel
DataLink.FieldName = 'Kostenstelle'
Enabled = False
MaxLength = 21
ReadOnly = True
ScriptEvents = <>
end