Hi,
I'm new in smartGWT and I want to begin a proof of concept of using SmartGWT in our new product
I want to develop custom form item which contains following items (selectItem, textItem), see attached screenshot
I see it is doable in smartGWT as following:
public class myFormItem extends CanvasItem {
TextItem textItem;
SelectItem selectItem;
public myFormItem () {
textItem= new TextItem("myText", "myText");
textItem.setShowTitle(false);
selectItem= new SelectItem("ComboBoxItem ", "ComboBoxItem ");
textItem.setShowTitle(false);
DynamicForm form = new DynamicForm();
form.setItems(selectItem, textItem);
this.setCanvas(form);
}
}
Previous component is used many times in my view (approximately 30 times in one view), I see there is a layout performance bottleneck and I guess this is occurred because of using too many dynamic forms (31) in same view ( 30 sub dynamic forms + the container of them)
I debugged the issue using Chrome inspect element and I see most of time consumed in calling recalculate style and layout events and they called many many times
My Questions are:
1- Is using many dynamic forms produce layout performance bottleneck in smartGWT?
i.e. the view will have number of dynamic forms instances equals the number of textItems in it
2- Most of delay on adding the view to root panel, and this adding action produce many recalculate style and layout events in chrome debugging tools
How is possible to fix this performance bottleneck?
3- Is there an event fired when the view is completely rendered? I need to measure the time needed for my view to be rendered and attached to the document
Thanks
I'm new in smartGWT and I want to begin a proof of concept of using SmartGWT in our new product
I want to develop custom form item which contains following items (selectItem, textItem), see attached screenshot
I see it is doable in smartGWT as following:
public class myFormItem extends CanvasItem {
TextItem textItem;
SelectItem selectItem;
public myFormItem () {
textItem= new TextItem("myText", "myText");
textItem.setShowTitle(false);
selectItem= new SelectItem("ComboBoxItem ", "ComboBoxItem ");
textItem.setShowTitle(false);
DynamicForm form = new DynamicForm();
form.setItems(selectItem, textItem);
this.setCanvas(form);
}
}
Previous component is used many times in my view (approximately 30 times in one view), I see there is a layout performance bottleneck and I guess this is occurred because of using too many dynamic forms (31) in same view ( 30 sub dynamic forms + the container of them)
I debugged the issue using Chrome inspect element and I see most of time consumed in calling recalculate style and layout events and they called many many times
My Questions are:
1- Is using many dynamic forms produce layout performance bottleneck in smartGWT?
i.e. the view will have number of dynamic forms instances equals the number of textItems in it
2- Most of delay on adding the view to root panel, and this adding action produce many recalculate style and layout events in chrome debugging tools
How is possible to fix this performance bottleneck?
3- Is there an event fired when the view is completely rendered? I need to measure the time needed for my view to be rendered and attached to the document
Thanks
Comment