Add a Behavior inside a cell with manipulation event

2 posts, 0 answers
  1. Valentin
    Valentin avatar
    2 posts
    Member since:
    Jan 2015

    Posted 04 Jan 2015 Link to this post

    I'm trying to add a behavior inside all cells of a column. 

      <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate DataType="itemGrid:ItemGrid">
          <Grid Panel.ZIndex="10" Background="Red" VerticalAlignment="Stretch"      HorizontalAlignment="Stretch">
              <TextBlock Text="{Binding ItemName}"/>
               <i:Interaction.Behaviors>
                 <behaviors:InertiaDeleteCptBehavior/>
               </i:Interaction.Behaviors>
            </Grid>
      </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>

    And to catch manipulation events like that : 

    protected override void OnAttached() {
              base.OnAttached();
              AssociatedObject.ManipulationDelta += Item_ManipulationDelta;
              AssociatedObject.ManipulationInertiaStarting += Item_ManipulationInertiaStarting;
              AssociatedObject.ManipulationCompleted += Item_ManipulationCompleted;
          }

    I thind that the GridView handle events an nothing past inside my behavior. Can i find another solution to work around this problem.
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 05 Jan 2015 Link to this post

    Hi Valentin,

    RadGridView has internal Touch handling which interferes with custom touch handling. Currently you can try doing this by disabling RadGridView internal Touch handling by setting TouchManager.IsTouchHitTestVisible to false for it. 


    Regards,
    Nick
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top