GridPanel convert encrypted text characters

  1. #1

    GridPanel convert encrypted text characters

        <script language="javascript" type="text/javascript"> 
            var creplace = function (value) { 
                return value.toString().replace(value, '*'); 
            } 
     
            var textToPassword = function (value) { 
                var result = ""; 
                for (var I = 0; I < value.toString().length; I++) { 
                    result += creplace(value.toString().substring(I, 1)); 
                } 
                return result; 
            } 
            // Yukarıdaki textToPassword fonksiyonu, value parametresi aldığı stringin 
            // her karakterini * karakteri ile değiştirir. 
        </script>
            <ColumnModel ID="ColumnModel1" runat="server"> 
                <Columns> 
                    <ext:Column DataIndex="PAROLA" Header="Parola(Yıldızlı)"> 
                        <Renderer Fn="textToPassword" /> 
                    </ext:Column> 
     
                    <ext:Column DataIndex="PAROLA" Header="Parola"> 
                    </ext:Column> 
                </Columns> 
            </ColumnModel>
    Click image for larger version. 

Name:	test-c99bfe158d8a49e5a1bc979fae337f3d.png 
Views:	75 
Size:	6.6 KB 
ID:	3408
  2. #2
    Thanks for posting the example!
    Geoffrey McGill
    Founder & CEO

Similar Threads

  1. [CLOSED] ColumnName with Special Characters in GridPanel
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 07, 2012, 7:12 PM
  2. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  3. [CLOSED] Totals convert as links at GridPanel issue
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 31, 2011, 4:45 PM
  4. Replies: 0
    Last Post: Jun 21, 2011, 2:51 AM
  5. Using JS To Convert Text
    By juan_pablo in forum 1.x Help
    Replies: 1
    Last Post: May 30, 2010, 7:28 PM

Posting Permissions