[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...

            <BeforeSelect Handler="CheckPositionValidity(item,record,index);" />
            <SelectionChange Handler="loadItemDetail(item, selected); " />
    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 ?

    Last edited by Daniil; Nov 28, 2014 at 9: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 3:07 PM.
  4. #4
    Well, yes :-/

    It seems to work now !

    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, 4:47 PM
  2. Grid Refresh Problem
    By supera in forum 2.x Help
    Replies: 0
    Last Post: Jun 02, 2014, 6:09 PM
  3. Replies: 2
    Last Post: Jan 03, 2013, 4:13 PM
  4. [CLOSED] Combo BeforeSelect Event
    By softmachine2011 in forum 2.x Premium Help
    Replies: 2
    Last Post: Sep 07, 2012, 9:12 AM
  5. Replies: 2
    Last Post: Mar 11, 2009, 9:59 AM

Posting Permissions