Ticket Q485929
Visible to All Users

ASPxHyperLink - How to show the hidden ASPxHyperLinks by clicking the other ASPxHyperLink

created 12 years ago

Hi,
I have 2 questions:

  1. I have a problem to show the hidden ASPxHyperLinks after clciking the other ASPxHyperlink.
ASPx
<dx:ASPxHyperLink runat="server" NavigateUrl="javascript:void(0);" ID="contactEdit" ClientInstanceName="cEdit" CssClass="profileEditControls" Text="Edit Contact Information"> <ClientSideEvents Click="function(s, e) {s.SetVisible(false);cCancel.SetVisible(true);cSave.SetVisible(true);}" /> </dx:ASPxHyperLink> <dx:ASPxHyperLink runat="server" NavigateUrl="#" ID="contactCancel" ClientInstanceName="cCancel" CssClass="profileEditControls" Text="Cancel" Visible="false" </dx:ASPxHyperLink> <dx:ASPxHyperLink runat="server" NavigateUrl="#" ID="contactSave" ClientInstanceName="cSave" CssClass="profileEditControls" Text="Save Contact Information" Visible="false" />

It does not work giving an error message that cCancel and cSave are undentified. 2. My second question is how do I call a code-behind method when I clcik the contactSave hyperLink to save the data. Thank you, Vadim

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hello Vadim,
If you set the control's Enabled property to "false", it will not be available on the client side.
Use the editor's ClientEnabled property instead of the Enabled property to make the editor available on the client side. Attached is a sample project. Please let me know if you need further assistance.
In order to better serve you and track multiple questions from your inquiry, we have taken the liberty of separating the issues you addressed. For quick and efficient responses to your concerns, we kindly request that future inquiries address one issue at a time. Your time and cooperation are appreciated.
I have created a new ticket to discuss this issue on your behalf: ASPxHyperLink - How to call a code-behind method by clicking the ASPxHyperlink

    Comments (2)
    VK VK
    Vadim Khachaturyan 12 years ago

      Larry, thank you very much. It has worked.

      DevExpress Support Team 12 years ago

        You are welcome!

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.