Jul 13, 2012, 3:30 PM
[CLOSED] Replacing the header values of the property grid with localised header
Normally a property grid is used as shown below and the headers will be "Name" and "Value". How do set a different title for the name and value. we localize our application and would like to set these value to the localized version of Name and Value
<ext:PropertyGrid ID="PropertyGrid1" runat="server" Width="300" AutoHeight="true">
<Source>
<ext:PropertyGridParameter Name="color" Value="#800080">
<Renderer Fn="function (value, metaData) { metaData.style += 'background-color: ' + value + ';';
return value;
}" />
<Editor>
<ext:DropDownField ID="DDFieldEditor" runat="server" Editable="false">
<Component>
<ext:Panel ID="Panel1" runat="server" AutoWidth="true" AutoHeight="true">
<Items>
<ext:ColorPalette ID="ColorPalette1" runat="server">
<Listeners>
<Select Fn="function (cp, color) {
DDFieldEditor.setValue('#' + color);
} "/>
</Listeners>
</ext:ColorPalette>
</Items>
</ext:Panel>
</Component>
</ext:DropDownField>
</Editor>
</ext:PropertyGridParameter>
<ext:PropertyGridParameter Name="test" Value="test" />
</Source>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
</SelectionModel>
</ext:PropertyGrid>
Last edited by Daniil; Jul 16, 2012 at 9:48 PM.
Reason: [CLOSED]