Hi,
I have a ListGrid on which I've set the modalEditing property to true. In that
ListGrid, I have a column which renders/edits using a custom CanvasItem derived class.
The custom CanvasItem class hosts an inner canvas which extends HLayout. That
inner canvas contains a DynamicForm and an ImgButton.
I've overridden the CanvasItem.focusInItem() method to focus() on the
inner canvas' button (I also tried one of the inner form's fields).
I've also overridden the CanvasItem.isEditable() method to return true.
The problem I have is that the ListGrid sets up an EditClickMask which will prevent me
from clicking any of the embedded canvas' DynamicForm fields or even the ImgButton.
As soon as I click on that FormItem's inner content, the ListGrid enters the
EndEditing mode and my editor gets closed.
If I set ListGrid.modalEditing to false, everything works as expected, but I do need
the modalEditing to be in place, for other reasons.
Is there anything else I need to override in CanvasItem for this work ?
Am I missing something ? Any idea ?
Thanks for your help,
I have a ListGrid on which I've set the modalEditing property to true. In that
ListGrid, I have a column which renders/edits using a custom CanvasItem derived class.
The custom CanvasItem class hosts an inner canvas which extends HLayout. That
inner canvas contains a DynamicForm and an ImgButton.
I've overridden the CanvasItem.focusInItem() method to focus() on the
inner canvas' button (I also tried one of the inner form's fields).
I've also overridden the CanvasItem.isEditable() method to return true.
The problem I have is that the ListGrid sets up an EditClickMask which will prevent me
from clicking any of the embedded canvas' DynamicForm fields or even the ImgButton.
As soon as I click on that FormItem's inner content, the ListGrid enters the
EndEditing mode and my editor gets closed.
If I set ListGrid.modalEditing to false, everything works as expected, but I do need
the modalEditing to be in place, for other reasons.
Is there anything else I need to override in CanvasItem for this work ?
Am I missing something ? Any idea ?
Thanks for your help,
Comment