PDA

View Full Version : GridPanel convert encrypted text characters



ismailkocacan
Nov 04, 2011, 4:16 PM
<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>
3408

geoffrey.mcgill
Nov 04, 2011, 4:42 PM
Thanks for posting the example!