IDE - Drag & Drop

4 posts, 0 answers
  1. Brad
    Brad avatar
    110 posts
    Member since:
    Jun 2004

    Posted 25 Sep 2007 Link to this post

    When can we expect to see improved drag and drop functionality in the Ribbonbar?

    I would like to be able to easily use all Telerik controls inside the Ribbonbar Chunks and Button Groups.  Also, the ability to easily use standard Windows controls would also be good.

    Thanks
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 26 Sep 2007 Link to this post

    Hello Brad,

    Even though drag/drop functionality is not available, it is fairly easy to add any control to a ribbon bar group (chunk). The following KB article demonstrates the approach:
    http://www.telerik.com/support/kb/article/b454K-mbc-b454T-cgc-b454c-cgc.aspx

    We have also added this functionality in our to-do list, but no specific deadline is set yet.

     
    Best wishes,
    Mike
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brad
    Brad avatar
    110 posts
    Member since:
    Jun 2004

    Posted 26 Sep 2007 Link to this post

    Hi,

    I had already read that KB article.

    As far as I can tell the examples in the article do not work with your Q2 2007 release of controls.

    I have submitted a support ticket demonstrating some the current problems.  Which includes controls not displaying in chunks, controls displaying over more than one chunk and chunks that don't draw correctly after adding non telerik controls.

    Regards,
    Brad
  5. Kiril
    Admin
    Kiril avatar
    158 posts

    Posted 26 Sep 2007 Link to this post

    Hi Brad,

    We have answered to your support ticket, but we would also like to describe what has changed.

    RadHostItem is an element that is part of our hierarchy of elements and as such it is taking part in our layout scheme.

    There are two ways of interaction between the size of the host item and the size of the control it hosts (the hosted control):

    1. The layout system calculates the available size for the host item and the item gives that size to the hosted control
    2. The hosted control has a set size and the host item makes the layout system to take that size into account when determining the size of the control hosting the hosted control

    Two boolean properties of RadHostItem determine these interactions: StretchHorizontally and StretchVertically.
    When some of them is false it means that in that direction the host item takes its size from the hosted control and the layout system will consider this size in its calculations.

    The default value for these two properties was false and is now changed to true. The reason is that users are more likely to use the hosted control in the RadControl the same way as the other elements (i.e. by obeying the layout).

    Still, with StretchHorizontally and StretchVertically set to false the old behavior can be achieved (the layout to obey the size of the hosted control). In the particular situation that is described here (and in the support ticket) the code was relying on the size of the hosted control.

    All the best,

    Kiril
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
Back to Top