GetRightSwipeControl

Typemessage
DictionaryDataGrid
LibraryData Grid
Syntax
on GetRightSwipeControl
Associationsdatagrid
Summary

Handle this message to specify a custom data grid right hand side swipe control.

Example
on GetRightSwipeControl
   return group "my custom right swipe control"
end GetRightSwipeControl

on GetRightSwipeControl
   -- Hide for the data grid row number 5
   if the dgIndex of me is 5 then
      return empty
   end if
   pass GetRightSwipeControl
end GetRightSwipeControl

on GetRightSwipeControl
   -- Turn left drags and swipes off
   return empty
end GetRightSwipeControl
RelatedProperty: enable swipe, left swipe control, right swipe control
Command: RowSwipeShowControlForIndexAndSide
Message: RowSwipeHideControl, RowSwipedRight, RowSwipedLeft, RowLeftSwipeControlClicked, RowLeftSwipeControlClicked, RowRightSwipeControlClicked, RowLeftSwipeControlHidden, RowRightSwipeControlHidden, GetLeftSwipeControl
Description

GetRightSwipeControl is sent to your data grid's custom row template. Handle GetRightSwipeControl if you want to specify a custom right hand side swipe control. Return the id of the control you want to display. Returning empty will result in no control being displayed.

Handing this message will override the right swipe control property.