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

Get Drag and Drop events

5 Answers 95 Views
Docking
This is a migrated thread and some comments may be shown as answers.
manu singh
Top achievements
Rank 1
manu singh asked on 11 May 2010, 04:45 PM
Hi Guys,
 
I am using telerik 2009 in which i have used a RadDocking control with the RadSplitContainer,RadPaneGroup and RadDocumentPane
i want to change the height and width of RadSplitContainer at the time, when i drop it on a location,
please help me.
thanks in advance
here is the code

 

<

 

telerikDocking:RadDocking AllowUnsafeMode="True" telerik:StyleManager.Theme="Office_Blue" Grid.Row="1" >

 

 

 

 

<!-- Header Area -->

 

 

 

 

<telerikDocking:RadSplitContainer InitialPosition="DockedLeft" Width="260">

 

 

 

 

<telerikDocking:RadPaneGroup>

 

 

 

 

<telerikDocking:RadDocumentPane CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False" TitleTemplate="{StaticResource TicketHedareTemplate}" Header="Ticket Header" >

 

 

 

 

ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">

 

 

 

 

<Grid ShowGridLines="False" x:Name="fieldLayoutGrid" DataContext="{Binding}" ScrollViewer.VerticalScrollBarVisibility="Visible">

 

 

 

</Grid>

 

 

</ScrollViewer>

 

 

 

</telerikDocking:RadDocumentPane>

 

 

 

</telerikDocking:RadPaneGroup>

 

 

 

</telerikDocking:RadSplitContainer>

 

 

</telerikDocking:RadDocking>

 

 

 

5 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 13 May 2010, 01:03 PM
Hi Manu,

 What I could suggest you is to use the PaneStateChanged event of the Docking control, but keep in mind that this event is fired just before the state change is finished. This means that the pane is still not placed in its new placed, but it will be once the method call is finished. If you perform your operation asynchronously (using Dispatcher.BeginInvoke) you will be able to do your work their.

Hope this helps!

Sincerely yours,
Miroslav Nedyalkov
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
manu singh
Top achievements
Rank 1
answered on 14 May 2010, 12:25 PM
Hey Miroslav,
thanks to point me about this event,
its really so helpfull into changing the property of the panegroup when dropping it,
still i have a question.
I saw the SL4 demo of the docking, in the demo if i close some group then some grey background is displayed (i think indicate that there is no group) and after that if i dropped some other group at that area it allowed to drop at center as well, can i do same think with the telerik 2009 docking control,
my means i want to allow drop at center (display the icon with the left right top botton and center) when there is no radPanegroup is present at the background of this area.

May i missing some property...............
please help me..........
Thanks.............    
0
Miroslav Nedyalkov
Telerik team
answered on 19 May 2010, 11:50 AM
Hi Мanu,

 I'm sorry, but I cannot clearly understand what you need to do. Showing the full compass (not only the center one) when there is no groups in the DocumentHost is not supported as the meaning of the other parts of the compass mean for example add at the left and if there is no groups, so the operation will not be valid. This is the reason why we removed the other parts.

If you want to do something else, please let us know.

Best wishes,
Miroslav Nedyalkov
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
manu singh
Top achievements
Rank 1
answered on 20 May 2010, 06:55 PM
Ohh.....
Let me explain again.
I am using 4 RadSplitContainer inside a RadDocking, so as when i Drag and Drop a RadSplitContainer(RadPane) inside any other RadSplitContainer(RadPane) then drop option comes with the LeftDrop,RightDrop,TopDrop,BotomDrop and CenterDrop but when i Drag and Drop a RadSplitContainer(RadPane) at the area (there are no RadSplitContainer because i closed all three RadSplitContainer(RadPane)) then Drop option comes with only LeftDrop,RightDrop,TopDrop and BotomDrop option Since i saw this same thing in Telerik2010 demo for the Docking (I have attached the Image file the same thing that i want either with the 2009 or with the 2010)

Thanks for your support and co-operation.
0
Miroslav Nedyalkov
Telerik team
answered on 25 May 2010, 11:12 AM
Hi Manu,

 There is no image attached  in your last post, neither in the previous ones.
Anyway I think I was able to understand what you need, but I if understand correctly this is not supported by the Docking control. What I understood is that you need to have 4 SplitContainers and when you are dropping something into the middle you need to show 5 parts - for each of split containers and one for the center/document host. Once a split container is closed you want to remove its option from the middle compass. Do I understand correctly?

Sincerely yours,
Miroslav Nedyalkov
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
Docking
Asked by
manu singh
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
manu singh
Top achievements
Rank 1
Share this question
or