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

Problem with arrow and DragExecutionMode.Legacy

1 Answer 45 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Nelson
Top achievements
Rank 1
Nelson asked on 26 Sep 2011, 09:19 AM
Hi,

Since I´ve uptade RadControls, I can´t see the arrow when I drag and Drop between two GridViews.

As telerik said, I put this line  RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy; in app file. With this, the arrow works good, but I can´t drop anything. However, this I take the executionMode from app file, the drag and drop works good, without any arrow...

Here is my GridView code

<TextBlock Text="Entidades:" telerik:StyleManager.Theme="{Binding Path=DataContext.Tema, ElementName=LayoutRoot}" />
                   <telerik:RadGridView
                   Name="GrdDragEntidades"
                   BorderThickness="0"
                   HorizontalAlignment="Left" Width="500" RowHeight="20" MaxHeight="200" Grid.Row="1" Grid.Column="0" Margin="0 10 0 0"
                   ItemsSource="{Binding OCEntidades}"
                   AutoGenerateColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False"
                   SelectionMode="Multiple"
                   IsReadOnly="True"
                   Cursor="Hand"
                   RowIndicatorVisibility="Collapsed"
                   IsFilteringAllowed="True"
                   ShowGroupPanel="False"
                   ShowColumnFooters="False" ShowInsertRow="False"
                   telerik:RadDragAndDropManager.AllowDrag="True">
               <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource ConcatenaTitulo}}" Header="Nome" Width="*"/>
               </telerik:RadGridView.Columns>
           </telerik:RadGridView>

And my GridView that will receive from GridDragEntidades.

<telerik:RadGridView
                    Name="GrdConvocados"
                    Background="Transparent"
                    ItemsSource="{Binding Path=DataContext.OCGrupoParticipantesReuniao,ElementName=LayoutRoot}"
                    BorderThickness="0"
                    HorizontalAlignment="Left" Width="500" RowHeight="20" MaxHeight="180" Grid.Row="0" Grid.Column="0" Margin="0 10 0 0"
                    AutoGenerateColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False"
                    SelectionMode="Single"
                    Cursor="Hand"
                    RowIndicatorVisibility="Collapsed"
                    IsFilteringAllowed="True"
                    ShowGroupPanel="False"
                    ShowColumnFooters="False" ShowInsertRow="False"
                    telerik:RadDragAndDropManager.AllowDrop="True">
                        <telerik:RadGridView.Columns>                           
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding EntidadesProp, Converter={StaticResource ConcatenaTitulo}}" Header="Nome" Width="0.75*" IsReadOnly="True"/>
                            <telerik:GridViewComboBoxColumn Header="Função Reunião" ItemsSource="{Binding OCFuncoesReuniao,Source={StaticResource reuConvocadosVM}}" Width="0.25*"
                                                            DataMemberBinding="{Binding FuncaoReuniaoIdProp,Mode=TwoWay}"
                                                            DisplayMemberPath="DesignacaoProp"
                                                            SelectedValueMemberPath="IdProp"
                                                            IsReadOnly="False">
                             
                                <telerik:GridViewColumn.ToolTipTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="Clique para definir a função do participante na reunião"></TextBlock>
                                    </DataTemplate>
                                </telerik:GridViewColumn.ToolTipTemplate>
                            </telerik:GridViewComboBoxColumn>
                        </telerik:RadGridView.Columns>
                        <swi:Interaction.Triggers>
                            <swi:EventTrigger EventName="Loaded">
                                <esi:CallDataMethod Method="GrdConvocados_Loaded" />
                            </swi:EventTrigger>
                            <swi:EventTrigger EventName="SelectionChanged">
                                <esi:CallDataMethod Method="GrdConvocados_SelectionChanged" />
                            </swi:EventTrigger>
                            <swi:EventTrigger EventName="DataLoaded">
                                <esi:CallDataMethod Method="GrdConvocados_DataLoaded" />
                            </swi:EventTrigger>
                        </swi:Interaction.Triggers>
                    </telerik:RadGridView>



I need add some other thing?

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 27 Sep 2011, 11:55 AM
Hello Nelson,

 It seems that in the common case the provided snippets work correctly. Would it be possible to check the sample and let us know if it helps. If not, would it be possible to send sample project (you can attach sample project by opening support ticket) reproducing the issue you are facing.

Regards,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DragAndDrop
Asked by
Nelson
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or