Skip to content

moveSelection

moves selection in the specified direction

function moveSelection(
// the move direction
direction: string
): void
mygrid.moveSelection("top");

The method can take only one value from the predefined set.

The predefined values are:

  • “top” - the selection is moved to the first item of the datagrid
  • “bottom” - the selection is moved to the last item of the datagrid
  • “up” (“left”) - the selection is moved one item left
  • “down” (“right”) - the selection is moved one item right
  • “pgup” - the selection is moved to the first item of the previous page (a page is the currently visible datagrid)
  • “pgdown” - the selection is moved to the first item of the next page (a page is the currently visible datagrid)

Articles

API