[CLOSED] Problem with BeforeSelect on the Grid

  1. #1

    [CLOSED] Problem with BeforeSelect on the Grid

    Hi all

    I need to check the State of some data in a Master/Detail View.
    The Master View Element is a GridPanel, the Detail a FormPanel. I to the check on the Grid's BeforeSelect Listener. In case of Invalid Data the Method returns false...

          <Listeners>
            <BeforeSelect Handler="CheckPositionValidity(item,record,index);" />
            <SelectionChange Handler="loadItemDetail(item, selected); " />
          </Listeners>
    It doesn't matter if the BeforeSelect returns true or false, the Selection Change is triggered. I also tried to use the Select Event - same problem.

    Any Idea on how I can prevent the Selection Change in case of non valid Detail Data ?

    Peter
    Last edited by Daniil; Nov 28, 2014 at 8:03 AM. Reason: [CLOSED]
  2. #2
    Any Ideas ?
  3. #3
    Hi Peter,

    The BeforeSelect handler doesn't return anything.

    Please use:
    <BeforeSelect Handler="return CheckPositionValidity(item,record,index);" />
    Last edited by Daniil; Nov 27, 2014 at 2:07 PM.
  4. #4
    Well, yes :-/

    It seems to work now !

    Thanks
    Daniil - have a nice weekend

Similar Threads

  1. Problem with a Command in a MVC Grid
    By simonespagna in forum 2.x Help
    Replies: 6
    Last Post: Oct 16, 2014, 3:47 PM
  2. Grid Refresh Problem
    By supera in forum 2.x Help
    Replies: 0
    Last Post: Jun 02, 2014, 5:09 PM
  3. [CLOSED] Get Result from DirectMethod for BeforeSelect
    By vzx in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 03, 2013, 3:13 PM
  4. [CLOSED] Combo BeforeSelect Event
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 07, 2012, 8:12 AM
  5. Replies: 2
    Last Post: Mar 11, 2009, 8:59 AM

Posting Permissions