Hello,
I am facing lot of problem creating GridTemplateColumn dynamically, i tried it using implementing ITemplate interface but was not successful.
I have other columns too in grid, which i create dynamically and do databinding also dynamically which works perfect,
Please can someone help me through this, its urgent.
Thanks in advance!
with regards,
Peeyush pandey
I am facing lot of problem creating GridTemplateColumn dynamically, i tried it using implementing ITemplate interface but was not successful.
I have other columns too in grid, which i create dynamically and do databinding also dynamically which works perfect,
Please can someone help me through this, its urgent.
Thanks in advance!
with regards,
Peeyush pandey
<
telerik:GridTemplateColumn
AllowFiltering
=
"False"
UniqueName
=
"columnAction"
>
<
HeaderStyle
Width
=
"30px"
/>
<
HeaderTemplate
>
<
asp:Label
ID
=
"lblHeaderAction"
runat
=
"server"
Text
=
"Action"
></
asp:Label
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"editButtonPanel"
runat
=
"server"
CssClass
=
"custom-Action-column"
Width
=
"50px"
>
<
asp:ImageButton
ID
=
"TagCloudButton"
runat
=
"server"
Width
=
"15px"
Height
=
"15px"
CommandName
=
"TagCloud"
CausesValidation
=
"False"
ImageUrl
=
"~/images/icon_grid.gif"
/>
</
asp:Panel
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"False"
UniqueName
=
"ProfileImage"
>
<
HeaderStyle
Width
=
"50px"
/>
<
HeaderTemplate
>
<
asp:Label
ID
=
"lblHeaderActionImage"
runat
=
"server"
Text
=
"Image"
></
asp:Label
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"ImagePanelPos"
runat
=
"server"
CssClass
=
"custom-Action-column"
Width
=
"50px"
>
<
asp:Image
ID
=
"Image1"
runat
=
"server"
Height
=
"35px"
Width
=
"35px"
ImageUrl='<%#Convert.ToString(Eval("Url")) %>' />
</
asp:Panel
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>