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

Add a Behavior inside a cell with manipulation event

1 Answer 11 Views
This is a migrated thread and some comments may be shown as answers.
Valentin
Top achievements
Rank 1
Valentin asked on 04 Jan 2015, 07:57 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 05 Jan 2015, 02:33 PM
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.

 
Asked by
Valentin
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or