Dear All,
I've a problem in immigrate gridview to Telerik Grid.
In Gridview, I have a DataList in TemplateField to bind some muti-data in each row,
eg.
<asp:TemplateField HeaderText="Owner">
<ItemTemplate>
<asp:DataList ID="dl_Owner_tmp" runat="server" RepeatDirection="vertical">
<ItemTemplate>
<asp:Label ID="lb_Owner" runat="server" Text='<%# Eval("LoginName") %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
</ItemTemplate>
</asp:TemplateField>
and in code-behind file when i use gridview, i put these source code in .
but when i immigrate to telerik grid, everything was fine except i could not find th RowDataBound event, and i also could not use find control to bind datalist control.
Is there anyone has some issue? and is these problem have any solution?
Thanks .
Vincent.
I've a problem in immigrate gridview to Telerik Grid.
In Gridview, I have a DataList in TemplateField to bind some muti-data in each row,
eg.
<asp:TemplateField HeaderText="Owner">
<ItemTemplate>
<asp:DataList ID="dl_Owner_tmp" runat="server" RepeatDirection="vertical">
<ItemTemplate>
<asp:Label ID="lb_Owner" runat="server" Text='<%# Eval("LoginName") %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
</ItemTemplate>
</asp:TemplateField>
and in code-behind file when i use gridview, i put these source code in .
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex > -1)
{
DataList myDataList = e.Row.FindControl("dl_Owner") as DataList; // Find control
myDataList.DataSource = Company.getCompanyListOwner(Convert.ToInt32(e.Row.Cells[0].Text)); //bind datalist
myDataList.DataBind();
}
but when i immigrate to telerik grid, everything was fine except i could not find th RowDataBound event, and i also could not use find control to bind datalist control.
Is there anyone has some issue? and is these problem have any solution?
Thanks .
Vincent.