[CLOSED] Embedding server tags in TemplateColumn

  1. #1

    [CLOSED] Embedding server tags in TemplateColumn

    I'm trying to call a server-behind function within a template column, something like:

    <ext:TemplateColumn ColumnID="{testInput}" Header="Test" DataIndex="{testInput}" Fixed="true" Width="120">
    <Template runat="server">
    <Html>
       <%=GetTestOutput("{testInput}")%>
    </Html>
    </Template>
    </ext:TemplateColumn>
    Using the code above gives me the following error: The 'Html' property of 'Template' does not allow child objects.
    Is it possible to accomplish this in another way?
    Last edited by Daniil; Nov 02, 2011 at 4:11 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Yes, you can achieve it in code behind, like:
    (this.GridPanel1.ColumnModel.Columns[2] as Ext.Net.TemplateColumn).Template.Html = "Hello World!";
    or just create a new TemplateColumd and add it to a ColumnModel Columns.

Similar Threads

  1. Cant use Inline Server Tags in server markup
    By tuananhdnx in forum 1.x Help
    Replies: 1
    Last Post: Dec 04, 2011, 11:20 PM
  2. [CLOSED] Embedding CSS and Javascript in DLL of Ext controls
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 05, 2011, 4:35 PM
  3. Replies: 0
    Last Post: Jul 19, 2011, 3:15 PM
  4. [CLOSED] Problem with TemplateColumn
    By xeo4.it in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 30, 2010, 10:19 AM
  5. Replies: 4
    Last Post: Jun 09, 2009, 3:05 PM

Posting Permissions