I am working with asp.net page with telerik, in which i have a telerik radgrid, when click on the grid edit, need to fetch some data that matches present scenario and that data in the form of data table containing multiple rows,
Now based on the no of rows in data table i need to generate RadPanelItems programmatically, i achieved this by using the following code
for (int i = 0; i < dtCompletedCust.Rows.Count; i++)
{
RadPanelItem panelItem = new RadPanelItem();
panelItem.Text = dtCompletedCust.Rows[i]["CustName"].ToString();
pnlReviewedCust.Items.Add(panelItem);
}
It is successfully adding me the no of RadPanelItems,
Now my requirement is that I need to add content template to each of this newly added RadPanelItem and this content template contains multiple controls, can any one help me or suggest some thing on this?