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.Type = ColumnType.Custom
Me.WebTextEdit1.Visible = True
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
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?
HelloYou can use the property PasswordMode of WebTextEdit <igtxt:WebTextEdit ID="webtextedit1" runat="server" PasswordMode="true"> </igtxt:WebTextEdit> <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" DataSourceID="SqlDataSource1"> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:UltraGridColumn EditorControlID="webtextedit1" Type="Custom" BaseColumnName="LastName" IsBound="True" Key="LastName"> ...
This work properly in 8.3. What am I missing?Thanks.