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

[Solved] access commanditemtemplate in prerender event

1 Answer 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Savyo
Top achievements
Rank 1
Savyo asked on 10 May 2013, 11:25 AM
Hi

  I want to access commanditemtemplate in prerender event. How can I accomplish this.

thanx
Savyo

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 May 2013, 11:50 AM
Hi,

Try accessing the CommandItemTemplate as shown below.

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    GridCommandItem citem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
    //your code
}

Thanks,
Princy.
Tags
Grid
Asked by
Savyo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or