Changing height on client side

2 posts, 1 answers
  1. Tomislav
    Tomislav avatar
    10 posts
    Member since:
    Jan 2014

    Posted 02 Dec 2014 Link to this post

    Hi,


    $("#GanttContainer").height($(window).height());

    var radGantt = $find('<%= RadGantt1.ClientID %>');
    radGantt.set_height($(window).height());
    radGantt.set_width($(window).width());

    I have this code, it executes and changes accordingly intern _height and _width property but gantt chart itself is not resizing.
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 03 Dec 2014 Link to this post

    Hello,

    This is a bug in the client set_height() and set_width() methods, that will be fixed in the upcoming ServicePack. In the meantime you can use the following code to change the height of the control:
    var $ = $telerik.$;
    var gantt = $find("RadGantt1");
    var targetHeight = $(window).height();
     
    $(gantt.get_element()).height(targetHeight);
    gantt._widget.resize();


    Regards,
    Bozhidar
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top