Mar 02, 2011, 11:42 AM
[OPEN] [#132] Problem with setting the TrueText and FalseText properties of TreeGridBooleanColumn
Hi,
As you can see in the following code i set both TrueText and FalseText of TreeGridBooleanColumn but there is no effect. Anyone got any ideas on how to solve this problem?
As you can see in the following code i set both TrueText and FalseText of TreeGridBooleanColumn but there is no effect. Anyone got any ideas on how to solve this problem?
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:TreeGrid ID="TreeGrid1" runat="server" Title="Core Team Projects" Width="500"
Height="300">
<Columns>
<ext:TreeGridColumn Header="task" Width="230" DataIndex="task" />
<ext:TreeGridBooleanColumn Header="Active" Width="150" DataIndex="active" TrueText="Verdadeiro" FalseText="Falso" />
</Columns>
<Root>
<ext:TreeNode Text="Tasks">
<Nodes>
<ext:TreeNode Icon="Folder" Expanded="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Project: Shopping" Mode="Value" />
<ext:ConfigItem Name="active" Value="true" Mode="Value" />
</CustomAttributes>
<Nodes>
<ext:TreeNode Icon="Folder">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Housewares" Mode="Value" />
<ext:ConfigItem Name="active" Value="false" Mode="Value" />
</CustomAttributes>
<Nodes>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Kitchen supplies" Mode="Value" />
<ext:ConfigItem Name="active" Value="false" Mode="Value" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Groceries" Mode="Value" />
<ext:ConfigItem Name="active" Value="false" Mode="Value" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Cleaning supplies" Mode="Value" />
<ext:ConfigItem Name="active" Value="true" Mode="Value" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Office supplies" Mode="Value" />
<ext:ConfigItem Name="active" Value="false" Mode="Value" />
</CustomAttributes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Root>
</ext:TreeGrid>
Last edited by Daniil; Jan 23, 2013 at 2:58 PM.
Reason: [OPEN] [#132]