This is a migrated thread and some comments may be shown as answers.

Disable Dragging in TileView

3 Answers 30 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Nicolas Drouin
Top achievements
Rank 1
Nicolas Drouin asked on 05 May 2010, 04:47 PM
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

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 May 2010, 03:45 PM
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.
0
Nicolas Drouin
Top achievements
Rank 1
answered on 07 May 2010, 06:40 PM
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  IsItemDraggingEnabledProperty

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

Thanks for the info,

-Nick
0
Tina Stancheva
Telerik team
answered on 13 May 2010, 07:42 AM
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.
Tags
TileView
Asked by
Nicolas Drouin
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Nicolas Drouin
Top achievements
Rank 1
Share this question
or