Mar 24, 2009, 7:15 AM
How can I add a status icon in front of a record in a gridpanel?
I have a set of colorful icons representing the status of the records, and I want to substitute these icons for boring status such as 0, 1, 2.
for instance:
red icon = 0,
green icon = 1,
yellow icon = 2
I already have a gridpanel as follows:
Any Coolite master know how?
Thanks.
for instance:
red icon = 0,
green icon = 1,
yellow icon = 2
I already have a gridpanel as follows:
<ext:GridPanel ID="GridPanel2" runat="server" AutoExpandColumn="Id" StoreID="Store1">
<ColumnModel ID="ColumnModel2" runat="server">
<Columns>
<ext:Column DataIndex="State" Header="State" />
<ext:Column ColumnID="Id" DataIndex="Id" Header="Order ID" />
<ext:Column DataIndex="ClientName" Header="Client Name" />
<ext:Column DataIndex="SalesName" Header="Employ Name" />
<ext:Column DataIndex="StartDate" Header="Start Time" Width="100">
<Editor>
<ext:DateField ID="TextField6" runat="server" />
</Editor>
</ext:Column>
<ext:Column DataIndex="DueDate" Header="Due Date" Width="100" />
</Columns>
</ColumnModel>
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="Store1" />
</BottomBar>
<LoadMask ShowMask="true" />
</ext:GridPanel>
I want to change the "State" column into an icon. i.e. bind the "State" column to the state retrieved from database with an icon. according to different states, different icons will be used.Any Coolite master know how?
Thanks.