Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello guys,

i'm having problem with gridtempletecolumn, when i add boundcolums the data shown properly but when i use templetecolum it does not show the data, can any one solve my problem.

check these images for more clearification:
http://www.telerik.com/clientsfiles/e7aa0045-a4f7-4df6-af0e-fa5ddb14560c_without-templetecolumn.png?sfvrsn=0[^]


http://www.telerik.com/clientsfiles/f741ae7d-66fe-405f-93a8-35174b0a90a7_with-templetecolumn.png?sfvrsn=0[^]

Thanks in advance.

Here is my code:

HTML
<pre lang="HTML">
<telerik:RadGrid ID="GVSeries" GridLines="None" runat="server" AllowAutomaticDeletes="True"
AllowAutomaticInserts="true" AllowFilteringByColumn="true" AllowSorting="true" PageSize="10" Skin="Default" OnItemDeleted="GVSeries_ItemDeleted" OnItemInserted="GVSeries_ItemInserted"
OnItemUpdated="GVSeries_ItemUpdated" OnPreRender="GVSeries_PreRender" AllowAutomaticUpdates="True" AllowPaging="True"
AutoGenerateColumns="False" Width="100%" önBatchEditCommand="GVSeries_BatchEditCommand" ItemStyle-Font-Size="Larger" HeaderStyle-Font-Size="Larger" CommandItemStyle-Font-Size="Larger" Font-Size="Larger">
<mastertableview commanditemdisplay="TopAndBottom" datakeynames="SeriesID">
HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
<batcheditingsettings edittype="row" openeditingevent="Click" saveallhierarchylevels="false">
<sortexpressions>
<telerik:gridsortexpression fieldname="SeriesID" sortorder="Ascending" xmlns:telerik="#unknown">

<columns> <telerik:gridboundcolumn datafield="ElementID" headerstyle-width="50px" headertext="ElementID" sortexpression="ElementID" xmlns:telerik="#unknown">
UniqueName="ElementID">

<telerik:gridboundcolumn datafield="Title" headerstyle-width="50px" headertext="Title" sortexpression="Title" xmlns:telerik="#unknown">
UniqueName="Title">

<telerik:gridboundcolumn datafield="Description" headerstyle-width="50px" headertext="Description" sortexpression="Description" xmlns:telerik="#unknown">
UniqueName="Description">

<telerik:gridboundcolumn datafield="Sequence" headerstyle-width="50px" itemstyle-wrap="true" headertext="Sequence" sortexpression="Sequence" xmlns:telerik="#unknown">
UniqueName="Sequence">

<telerik:gridboundcolumn datafield="SeriesTypeID" headerstyle-width="50px" itemstyle-wrap="true" headertext="SeriesTypeID" sortexpression="SeriesTypeID" xmlns:telerik="#unknown">
UniqueName="SeriesTypeID">

<telerik:gridboundcolumn datafield="Stack" headerstyle-width="50px" itemstyle-wrap="true" headertext="Stack" sortexpression="Stack" xmlns:telerik="#unknown">
UniqueName="Stack">

<telerik:gridboundcolumn datafield="Color" headerstyle-width="50px" itemstyle-wrap="true" headertext="Color" sortexpression="Color" xmlns:telerik="#unknown">
UniqueName="Color">

<telerik:gridboundcolumn datafield="FunctionName" headerstyle-width="50px" itemstyle-wrap="true" headertext="FunctionName" sortexpression="FunctionName" xmlns:telerik="#unknown">
UniqueName="FunctionName">


<telerik:gridtemplatecolumn xmlns:telerik="#unknown">
<itemtemplate>
<%# Eval("Show_As_Parameter")%>

<edititemtemplate>
<asp:CheckBox Text="text" runat="server" />


<telerik:gridbuttoncolumn confirmtext="Are you sure you want delete this reord?" confirmdialogtype="RadWindow" xmlns:telerik="#unknown">
ConfirmTitle="Delete" HeaderText="Delete" HeaderStyle-Width="30px" ButtonType="ImageButton"
CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">

<%--<telerik:grideditcommandcolumn footertext="EditCommand footer" uniquename="EditCommandColumn" xmlns:telerik="#unknown">
HeaderText="Edit" HeaderStyle-Width="100px" UpdateText="Update">
--%>

<clientsettings allowkeyboardnavigation="false">
<Selecting AllowRowSelect="true"></Selecting>
Posted
Updated 12-Mar-14 22:41pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900