Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Defer drawing using autoDraw

    I have an application that generates a large number of widgets. I would like to defer the rendering of these widgets.

    I looked the following documentation: http://www.smartclient.com/docs/9.0/docs/SmartClient_Quick_Start_Guide.pdf

    After instantiating a Canvas object, I have called "setAutoDraw(false)" and "setAttribute("autoDraw", false, true);".

    Attempts:
    1) I used "addChild(..)" on the Canvas object and the children are rendered immediately (without me calling 'draw').
    2) I used "addChild(widget, name, autoDraw) where the autoDraw flag was disabled and the children were rendered immediately (without me calling 'draw').
    3) In my HTML file, I added this line "<script>isc.setAutoDraw(false)</script>" in an attempt to globally disable the autoDraw. This did not work.

    Can someone please give me some pointers on what I am missing and how to defer rendering of Canvas children?

    Thanks.

    SmartGWT version: SmartGWT 4.0p from 12-12-13
Working...
X