Disable Dragging in TileView

4 posts, 0 answers
  1. Nicolas Drouin
    Nicolas Drouin avatar
    2 posts
    Member since:
    May 2010

    Posted 05 May 2010 Link to this post

    Hi,

    I am looking to disable the tile dragging feature in TileView when no tiles are maximized.

    My problem arises because my TileView Items contain RadHTMLPlaceHolders, these render a third-party ActiveX.  Unfortunately, this ActiveX does not push its mouse-hits through the window stack.  So if you are dragging the TileView, but your mouse slips over the content of the TileView, the mouse is captured by the ActiveX and you get some exciting Z-Order issues as the TileView Item's frame stops moving until you bring the mouse back off the ActiveX.   All in all, not a very elegant effect.

    I don't need the dragging to work, it does not add value in this context.  How do I disable it?

    I can see the property with:
     bool bDraggingEnabled = TileViewItem1.ParentTileView.IsItemDraggingEnabled;

    How do I change this?

    Thanks,

    -Nick
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 07 May 2010 Link to this post

    Hello Nicolas Drouin,

    You can set the IsItemDraggingEnabled property to "False" in the declaration of the TileView in teh XAMl or in code-behind:
    TileViewItem1.ParentTileView.IsItemDraggingEnabled = false;

    Give it a try and let us know if it works for you.

    Greetings,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Nicolas Drouin
    Nicolas Drouin avatar
    2 posts
    Member since:
    May 2010

    Posted 07 May 2010 Link to this post

    Hi,
    Thanks, that worked and was very simple. 

    I guess I was thrown off by the declaration of the property in the RadTileView class definition:
    ms-help://telerik.windows.controls.Silverlight/telerik.windows.controls.api/topic2743.html  (Silverlight 3)
    C#  
    public static readonly DependencyProperty IsItemDraggingEnabledProperty

    Which conflicts with the following, which I just found:
    ms-help://telerik.windows.controls.Silverlight/telerik.windows.controls.api/topic2727.html
    C#  
    public bool IsItemDraggingEnabled {get; set;}

    Thanks for the info,

    -Nick
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 13 May 2010 Link to this post

    Hello Nicolas Drouin,

    Thank you for reporting this issue with the help articles. We will fix it as soon as possible.

    I added 500 Telerik points to your account.

    Sincerely yours,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top