[CLOSED] Get Result from DirectMethod for BeforeSelect

  1. #1

    [CLOSED] Get Result from DirectMethod for BeforeSelect

    Hi,

    I have a CheckboxSelectionModel and i want to do something with a directmethod when beforeselect is triggered. If directmethod's result is false, selectionmodel should deselect that row. Is there a way to do this?

            var abcBeforeSelect= function (item, record, index) {
                App.direct.Save({
                    success: function (result) {
                        return result;
                    }, 
                    eventMask: {
                        showMask: true
                    }
                });
            }
       <ext:CheckboxSelectionModel runat="server" Mode="Simple">
             <Listeners>
                    <BeforeSelect Fn="abcBeforeSelect" />
             </Listeners>
    </ext:CheckboxSelectionModel>
    Thanks..
    Last edited by Daniil; Jan 03, 2013 at 4:03 PM. Reason: [CLOSED]
  2. #2
    Hi @vzx,

    You can return false from the BeforeSelect listener and select the clicked row if the DirectMethod handler returns true.
  3. #3
    Thanks Daniil.

Similar Threads

  1. Replies: 4
    Last Post: Jun 13, 2014, 12:54 PM
  2. [CLOSED] How to handle the result of DirectMethod?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 17, 2012, 4:15 PM
  3. [CLOSED] Combo BeforeSelect Event
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 07, 2012, 8:12 AM
  4. [CLOSED] Difference between DirectMethod , DirectEvent, Static DirectMethod
    By syllabusarq in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 01, 2011, 11:37 AM
  5. Replies: 1
    Last Post: Dec 09, 2010, 11:52 AM

Tags for this Thread

Posting Permissions