- 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:
parent
e46e9d23cc
commit
dceebebb1d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue