May 21, 2013, 3:24 PM
[CLOSED] Password field in Propertygrid
Hi,
I would like to show a passwordfield in a property grid. I can change the inputstyle for the editor into 'password', but would also show it with a 'password mask' in the property grid itself.
Is there a way to achieve that ?
I would like to show a passwordfield in a property grid. I can change the inputstyle for the editor into 'password', but would also show it with a 'password mask' in the property grid itself.
Is there a way to achieve that ?
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>PropertyGrid with Button DirectEvent - Ext.NET Examples</title>
<link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.data th {
font-weight : bold;
}
.data th, .data td {
padding : 4px;
border : 1px solid black;
}
.red-label{
color:Red;
}
.blue-label{
color:Blue;
}
</style>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:PropertyGrid
ID="PropertyGrid1"
runat="server"
Width="300"
AutoHeight="true">
<Source>
<ext:PropertyGridParameter Name="Password" Value="Password">
<Editor>
<ext:TextField ID="textField1" InputType="Password" runat="server" />
</Editor>
</ext:PropertyGridParameter>
</Source>
<View>
<ext:GridView ID="GridView1" ForceFit="true" ScrollOffset="2" runat="server" />
</View>
</ext:PropertyGrid>
</form>
</body>
</html>
Martin
Last edited by Daniil; May 23, 2013 at 8:44 AM.
Reason: [CLOSED]