Premium forums

Get selected state from args for toggle handling?

  • Basem
    Basem avatar

    17 May 2012 (Link to this post)

    I would like to enable toggle functionality in the grid selection. So it the state is in selection state, I would like to perform one action. If it is toggled off, I would like another action to be performed. Is there a way to determine this? It would be great to see this property in the grid change (e) handler.
  • Alexander Valchev
    Alexander Valchev avatar

    18 May 2012 (Link to this post)

    Hi Basem,

    You can retrieve the selected row/cells through the select method or to use the class "k-state-selected" - it is attached to every selected item.

    If you want to detect if a row/cell is being selected or unselected in a multi select mode, I am afraid that this functionality is not supported at present.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Read FAQ or see Kendo UI in action!

Launch Demos