i am trying to display the results of the following javascript function in a column,using the renderer property to refer to the function however am not seeing the results...not sure what i am missing. tried using both the column renderer property and record field convert property
the purpose of the function is to mask the values in the restriction code column for example 1234 becomes 12**
Here are the snippets. Thanks in advance for any ideas.
<script type="text/javascript">
var start = function RenderRC(value) {
if (value.toString.length > 2) {
var value = value.substr(0, 2) + Array(value.length - 2 + 1).join("*");
return value;
}
};
</script>
<Fields>
<ext:RecordField Name="RestrictionCode" />
</Fields>
<ext:Column Header="<%$ Resources:Text,RestrictionCode %>" DataIndex="RestrictionCode" Fixed="true" Width="200" align="Center">
<Renderer Fn="start" />
</ext:Column>
<LoadMask ShowMask="true" Msg="<%$ Resources:Text, RetrievingUsers %>" />