Confirmation dialog did not raise direct method

  1. #1

    Confirmation dialog did not raise direct method

    Hi
    I have a problem on confirmation dialog. I created an AbstaractComponent inherited class named ConfirmationDialog for displaying confirmation dialog. Then I wrote a property in another component (my component named StandardContextMenu and I put it in another component named ExplorerGridPanel and it is contained in an ASCX control called DesktopApplicationTemplate) that it's type is as ConfirmationDialog. I create 2 events for Yes and No result of dialog box in ConfirmationDialog that they should be raised when DoYes and DoNo methods called. My problem is DoYes or DoNo direct methods will not be called when I clicked on Yes or No buttons. Attribute settings that I used on DoYes and DoNo methods are

    [DirectMethod(Namespace = "Diten.Web.UI.WebControls.ConfirmationDialog", IDMode = DirectMethodProxyIDMode.None)]

    I was testing all modes of IDMode and I removed it too but nothing happened.

    Attention!!!
    When I put DoYes and DoNo methods on DesktopApplicationTemplate both methods will be called but I want to call ConfirmationDialog methods in ConfirmationDialog classbecause I need to raise Yes and No events. How can I solve my problem? How can I find the path of a DirectMethod (DirectMethodProxyID) and calling it in my click handler (My method is in a component, not in my ASCX control)?
    Attached Thumbnails ConfirmationDialog.jpg   DesktopApplicationTemplate.jpg   StandardContextMenu.jpg  
    Last edited by ArashRahimian; Jun 04, 2017 at 2:15 PM. Reason: Attaching screen shots.
  2. #2

    Solution

    Finally I found a solution. I changed my class inheritance form AbstractComponent into UserControl and it works. I found my answer in this page.
    https://forums.ext.net/showthread.ph...d-Master-Pages
    Last edited by ArashRahimian; Jun 04, 2017 at 8:19 PM.

Similar Threads

  1. [CLOSED] Direct Method - App.direct undefined
    By registrator in forum 2.x Premium Help
    Replies: 4
    Last Post: Jul 23, 2014, 2:47 PM
  2. Replies: 2
    Last Post: May 13, 2014, 9:52 AM
  3. Replies: 3
    Last Post: Nov 14, 2013, 5:51 PM
  4. [CLOSED] Output Cache issue with Direct Method / Direct Event
    By amitpareek in forum 1.x Premium Help
    Replies: 18
    Last Post: Mar 01, 2013, 6:03 AM
  5. Replies: 2
    Last Post: Apr 27, 2011, 3:58 PM

Tags for this Thread

Posting Permissions