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 Click image for larger version. 

Name:	ConfirmationDialog.jpg 
Views:	74 
Size:	101.6 KB 
ID:	24974   Click image for larger version. 

Name:	DesktopApplicationTemplate.jpg 
Views:	72 
Size:	101.9 KB 
ID:	24975   Click image for larger version. 

Name:	StandardContextMenu.jpg 
Views:	81 
Size:	103.1 KB 
ID:	24976  
    Last edited by ArashRahimian; Jun 04, 2017 at 1: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 7:19 PM.

Similar Threads

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

Tags for this Thread

Posting Permissions