Bug Report B145213
Visible to All Users

GetText and Enabled Property and Firefox

created 15 years ago

GetText() Client method of aspxtextbox (and maybe other controls), with it's enabled property set to false, does not work in mozilla firefox but it is working in IE. If we use the clientenabled property instead then it is working fine with both browsers.
Actually this is not a big issue besides the event that took me 4 hours to figure it out. Maybe I missed something in documentation.
But since it is working as expected in IE but not in FF then it can be considered as a bug.
Thank you for your time,
Christos Hohlidakis
Steps to Reproduce:
Run the attached sample and click the "Click Me" button. Try it with IE first and then in FF. In FF's error console the message txtcode is undefined appears. Then uncomment the line "txtCode.ClientEnabled = False" and comment out the line "txtCode.Enabled = False" and run the project again. It is working

Comments (2)
DevExpress Support Team 15 years ago

    Hello Christos,
    An editor is not supposed to be controlled on the client-side if its Enabled property is set to False. In this case, the editor doesn't render its scripts for any browsers, but Internet Explorer. Scripts are still required for Internet Explorer to finally adjust the editor's size on the client. Please treat this behavior as an exception of the rule.
    If you want to drive an editor on the client side, use its ClientEnabled property rather than the Enabled one. In addition, you should specify a ClientInstanceName.
    Thanks,
    Nick
    --------------------
    Check if Search Engine is able to answer questions faster than I do!

    CC CC
    CHRISTOS CHOHLIDAKIS 15 years ago

      Thanks a lot Nick I thought it was a bug. :-(

      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.