[CLOSED] Password field in Propertygrid

  1. #1

    [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 ?

    <%@ 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]
  2. #2
    What about to use renderer for property parameter and replace a value by * symbols?
  3. #3
    Quote Originally Posted by Vladimir View Post
    What about to use renderer for property parameter and replace a value by * symbols?
    Simple, but perfect.

    Thanks Vlad !

Similar Threads

  1. [CLOSED] how to allow password least 6 character
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 13, 2013, 7:49 AM
  2. Implement a Password Meter to a Password Field
    By sudantha in forum 1.x Help
    Replies: 1
    Last Post: Jan 15, 2012, 6:59 AM
  3. Replies: 0
    Last Post: Dec 29, 2010, 11:41 PM
  4. password confirm
    By maxdiable in forum 1.x Help
    Replies: 3
    Last Post: Aug 19, 2010, 3:07 PM
  5. PropertyGrid Field can't edited
    By yarlenvas in forum 1.x Help
    Replies: 0
    Last Post: Mar 10, 2009, 9:53 AM

Posting Permissions