JavaScript - Determine if GridPanel has any selections - How to?

  1. #1

    JavaScript - Determine if GridPanel has any selections - How to?

    How can I determine if a gridpanel has any selections?
  2. #2
    Hi,

    You can use this from code behind :

    ((CheckboxSelectionModel)YourGridPanel.GetSelectionModel()).SelectedRows.Count == 0
    That returns true if no row is selected.
  3. #3
    Or from JS :

    #{YourGridPanel}.getSelectionModel().hasSelection()
  4. #4
    Perfect! Thanks!!

Similar Threads

  1. [CLOSED] Get RadioGroup selections during a DirectEvent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 17, 2012, 3:33 PM
  2. Replies: 3
    Last Post: Dec 30, 2011, 12:34 PM
  3. Replies: 1
    Last Post: Sep 02, 2010, 3:59 PM
  4. Replies: 8
    Last Post: Apr 06, 2010, 7:20 AM
  5. Clear selections of gridpanel
    By onurbozkurt in forum 1.x Help
    Replies: 4
    Last Post: Aug 19, 2009, 5:00 PM

Posting Permissions