Reducing HTML footprint

2 posts, 0 answers
  1. Paresh
    Paresh avatar
    11 posts
    Member since:
    Jan 2009

    Posted 25 Mar 2014 Link to this post

    I was checking Telerik UI for ASP.NET AJAX Q1 2014 trial version for feasibility.
    I found that it generates lots of JavaScript for single control.
    for example, i attached javascript code generated for a RadGrid with 10 row and single column. but it generated so many JSON properties. its size is more than 2 kb.

    Is it possible to reduce it?
    I mean most of the properties value are default. they can be prevented.
  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 27 Mar 2014 Link to this post

    Hello Paresh,

    Please note that RadGrid is a complex control and it is expected that the JSON with the description of the properties and their values will be bigger.

    As for your question if the generated code could be reduced, indeed, there are some default values and properties that could be removed, but this could not be achieved on your end.

    I have contacted our developers team and I am logging this as an improvement request in our system, so they could investigate the possibility for introducing such optimization for the controls.

    Please let us know if any further questions arise.

    Konstantin Dikov

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top