Recommended approach for saving to/opening from stream

5 posts, 0 answers
  1. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 28 Jul Link to this post

    I need to build a drawing tool which can save to a stream (possibly JSON) and load form the same stream either to display or make changes.

    This scenario does not seem to be supported by the drawing API but since the Surface has a draw method, I am assuming it has an internal representation of drawing objects which can be saved and reloaded.

    What would be the best approach to achieve this.

    Would you have a basic dojo/fiddle available?

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 01 Aug Link to this post

    Hi,

    We don't currently have built-in means to serialize a scene graph. It's easy to see how this feature can be very useful.

    Each drawing element has a "nodeType" field and an "options" configuration object.
    Serializing a shape tree with these fields should be sufficient.

    Please, file a feature request on our UserVoice portal if you have a minute.
    This will help us gauge the overall interest and prioritize.

    Regards,
    T. Tsonev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 02 Aug in reply to T. Tsonev Link to this post

    I would have loved to but I have been out of votes on UserVoice for several years. UserVoice does not reward suggestions, it limits suggestions/votes to 10, which is very low.

  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 04 Aug Link to this post

    Hi,

    That's interesting, I didn't realize you can run out of votes permanently.

    Please, feel free to file it as a feature suggestion on our public issue tracker. Thanks!

    Regards,
    T. Tsonev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007
Back to Top
Kendo UI is VS 2017 Ready