This is a migrated thread and some comments may be shown as answers.

GridTemplateColumn : get column reference in InstantiateIn method

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Osman
Top achievements
Rank 1
Osman asked on 05 Mar 2009, 10:23 AM
Hi all,

In my app, I have a RadGrid which I built dynamically by adding coulmns in the page_init()... One column is a GridTemplateColumn with a custom ItemTemplate. Everything works fine but I would like to know if there a way to get the column(GridTemplateColumn) reference in InstantiateIn method ?

public class myTemplate : ITemplate     
{     
    void ITemplate.InstantiateIn(Control container)      
    {     
        //want to get the reference of column here  
    }     

Thanks
Osman

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 10 Mar 2009, 07:33 AM
Hello Osman,

The columns would not be available there. You can try to reference it at a later stage, for example in PreRender event handler for the grid.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Osman
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or