Aug 15, 2012, 4:30 PM
[CLOSED] Command Column
hi,
Please let me know if there is a way to let the Text property of a command in a Command column use the value of the column dataindex field and also make the command fit the width of the column.
below i am using the SplitCommand and would like the text be the {Name} and also make the command re-size to fit the column width.
Please let me know if there is a way to let the Text property of a command in a Command column use the value of the column dataindex field and also make the command fit the width of the column.
below i am using the SplitCommand and would like the text be the {Name} and also make the command re-size to fit the column width.
<ext:CommandColumn DataIndex="Name" Header ="Name" Width="80">
<Commands>
<ext:SplitCommand Text='{Name}' AutoDataBind ="true" CommandName ="GridView">
<Menu>
<Items>
<ext:MenuCommand Text="View in grid view" CommandName="GridView">
</ext:MenuCommand>
<ext:MenuCommand Text="View in list view" CommandName="ListView">
</ext:MenuCommand>
</Items>
</Menu>
</ext:SplitCommand>
</Commands>
</ext:CommandColumn>
Last edited by Daniil; Aug 18, 2012 at 9:38 AM.
Reason: [CLOSED]