- for multi line text field, the grid mode editor always trigger on change event and mark record as dirty even though user have not make any changes.
This commit is contained in:
Heng Sin Low 2009-09-08 09:24:42 +00:00
parent e46e9d23cc
commit dceebebb1d
1 changed files with 13 additions and 16 deletions

View File

@ -120,23 +120,20 @@ public class WStringEditor extends WEditor implements ContextMenuListener
}
getComponent().setCols(displayLength);
if (!tableEditor)
if (gridField.getDisplayType() == DisplayType.Text)
{
if (gridField.getDisplayType() == DisplayType.Text)
{
getComponent().setMultiline(true);
getComponent().setRows(3);
}
else if (gridField.getDisplayType() == DisplayType.TextLong)
{
getComponent().setMultiline(true);
getComponent().setRows(5);
}
else if (gridField.getDisplayType() == DisplayType.Memo)
{
getComponent().setMultiline(true);
getComponent().setRows(8);
}
getComponent().setMultiline(true);
getComponent().setRows(3);
}
else if (gridField.getDisplayType() == DisplayType.TextLong)
{
getComponent().setMultiline(true);
getComponent().setRows(5);
}
else if (gridField.getDisplayType() == DisplayType.Memo)
{
getComponent().setMultiline(true);
getComponent().setRows(8);
}
if (getComponent() instanceof Textbox)