Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Password Display in UltraWebgrid showing Free Text!
posted

I have a webgrid that contains a password field - in order to hide the input when editing this field  - I execture the following section of code;

If ruleEncrypt IsNot Nothing Then

aGridColToProcess.EditorControlID = Me.WebTextEdit1.ID

aGridColToProcess.Type = ColumnType.Custom

Me.WebTextEdit1.Visible = True

Dim b As New ValidatorItem

However, the minute the user clicks off the cell - the original field is shown and the password they have just typed shows as free text. Is there a way to always show the editor column on top of the original field - or another way to change the grid cell so that text is always hidden?

End If

Parents
  • 59
    posted

    I have exactly the same issue. Has anyone come up with a workable solution for this?

    I have tried embedding a WebTextEdit in Password Mode in a templated column as well, but the cell doesn't get flagged to be updated during batch updates, so I'm guessing that the cell value isn't being updated.

    I had added a client-side script to handle the Update event, as follows:

     function WebTextEdit1_ValueChange(oEdit, oldValue, oEvent) {
        var thisCell = igtbl_getActiveRow("MyGrid").getCellFromKey("NewPassword");
        if (thisCell != null) { 
            thisCell.Value = oEdit.getText(); 
        }
    }

    ...and it's behaving oddly... In that it sometimes shows the plain text (non-bulleted) password in the cell when the focus leaves the cell in the templated column.

    Any ideas?

Reply Children