Need a 'Drop Up' Tree

4 posts, 0 answers
  1. Dan Ehrmann
    Dan Ehrmann avatar
    152 posts
    Member since:
    Jul 2004

    Posted 27 May 2014 Link to this post

    I need to make my DropDownTree expand upwards in some cases.

    RadComboBox seems to deal with this automatically - it changes directions when there isn't enough space. And it has an ExpandDirection property which can be manually set. Is there something I can do to achieve this in a DropDownTree?
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 29 May 2014 Link to this post

    Hi Dan,

    The control does not implement the requested feature. Your suggestion is logged into our internal tracking system and it will be implemented as soon as we could. I have updated your Telerik points. Until then, you could use the following workaround(add the below code to your project):
    Telerik.Web.UI.RadDropDownTree.prototype.openDropDown = function () {
        if (!this._onDropDownOpening()) {
            this._dropDown.show(this._element, true);
            this._onDropDownOpened();
        }
    }
    Keep in mind that DropDownSettings-Height property should be set too.

    Regards,
    Peter Filipov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan Ehrmann
    Dan Ehrmann avatar
    152 posts
    Member since:
    Jul 2004

    Posted 29 May 2014 in reply to Peter Filipov Link to this post

    That works perfectly - thanx.

    I noticed a small problem - when using auto-width and a specified height, if you expand the tree so that scroll bars are necessary within the drop-down, the width does not adjust to accommodate the vertical scroll bar, so a horizontal scroll bar also appears. I resolved this by adding some padding:

    .rddtScroll {
        padding-right:20px;
    }
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 03 Jun 2014 Link to this post

    Hi Dan,

    I am glad to hear that everything is working fine with the applied styles. When we implement the feature will have in mind that visual glitches.

    Regards,
    Peter Filipov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top