Problem with arrow and DragExecutionMode.Legacy

2 posts, 0 answers
  1. Nelson
    Nelson avatar
    62 posts
    Member since:
    Apr 2011

    Posted 26 Sep 2011 Link to this post

    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
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 27 Sep 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top