Hi all,
Please hlelp on this issue , It is very urgent .
I need to do goup by (By Drag and drop ) . When I am using GridBoundColumn It is working fine. but when i am using
GridTemplateColumn with HeaderTemplate . I am not able to do drag and drop columns to do groupby and sorting the column also.I am not binding values in the header template . I am just arranging with a label with text value set directly and image.
Whether Is it mandatroy that i must bind some thing to the label in header template. I couldnt understand why it is not working .
Here is code i am using
<
telerik:GridTemplateColumn
GroupByExpression
=
"CloseOutType"
DataField
=
"CloseOutType"
SortExpression
=
"CloseOutType"
HeaderStyle-CssClass
=
"xmediumcolsize"
>
<
HeaderTemplate
>
<
asp:Image
ID
=
"imgCloseOutType"
ImageUrl
=
"~/Images/closeout_type.png"
runat
=
"server"
/>
<
asp:Label
ID
=
"lblheaderCloseOutType"
runat
=
"server"
Text
=
"Interim/Workbook"
></
asp:Label
>
<%-- <
asp:HiddenField
ID
=
"HiddenField1"
Value='<%# eval("CloseOutType") %>' runat="server" />--%>
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblCloseOutType"
runat
=
"server"
Text='<%# eval("CloseOutType") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>