Hi,
I'm using Ext 1.0 with .NET Framework 4.0. I have a standard ASP.NET gridview control with Template field.
Here is a Code for HTML markup:
 <asp:TemplateField HeaderText="Media(s)"  >
 <ItemTemplate>
     <a href="Media.aspx?MID=<%=intModuleID %>&Mod=<%=strMod %>&DataID=<%# DataBinder.Eval(Container.DataItem,"ClientId") %>" > ( <%# GetMedia(intModuleID, DataBinder.Eval(Container.DataItem, "ClientId"))%>  ) </a>
     </ItemTemplate>
  <ItemStyle HorizontalAlign="Center" Width="5%" />
</asp:TemplateField>
Here intModuleID is public Integer and strMod is public string variables in my code behind file. ClientId is a field from DataTable and GetMedia is public function in my code behind file which is being called everytime I bind data to my gridview.

Here is code for the function:
Public Function GetMedia(ByVal ModuleID As Integer, ByVal DataId As Integer) As Integer
                
		Dim objMedia As New clsMedia
                ''Get number of media available for client using moduleId and DataId
                dim intMediaCount as Integer =  objMedia.GetMediaCountForClient("Database Query")
		return intMediaCount
	End Function
How can I achieve the same in Ext template column in gridpanel or is there any other way to do it in Ext ?

Please help me.

Thanks