Bug Report B137142
Visible to All Users

PropertiesTextEdit and password

created 16 years ago

When you set e.Editor.Value on CellEditorInitialize event in a ASPxGridView and the Column PropertiesTextEdit is set to Password="True" and UnboundType="String" the value is not shown .
Actual Results:
The textbox is shown empty
Expected Results:
The textbox must have the value set in the CellEditorInitialize event

Answers

created 16 years ago

Hi Alvaro:
his behavior is by design. We've implemented it to fix the Q144772 bug. In earlier versions, the password that was set on the server side was visible in the page source in the browser. Thus, it was possible to compromise the password.
Now, there's no way to set a text for a standalone textbox or the GridViewDataTextColumn editor on the server side, but it is possible to do this on the client. For example, use the CustomJSProperties event handler of the ASPxTextBox to pass the required text on the client side and set it for the editor using the SetText method. Also, you can implement another client-side solution that is most acceptable for your project.
Thanks
Kate.

    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.