Hi All :
protected void radgrdList_EditCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
this.radgrdList.MasterTableView.Items[e.Item.ItemIndex].Edit = true;
GridEditableItem item = (GridEditableItem)e.Item;
Guid id = (Guid)item.GetDataKeyValue("CatalogID");
ContentCatalog catalog = new ContentCatalog().GetOne(id);
DropDownList ddlPosition = (DropDownList)item["position"].FindControl("ddlPosition");
if (!String.IsNullOrEmpty(catalog.Position))
{
ddlPosition.Items.FindByValue(catalog.Position);
}
this.radgrdList.MasterTableView.Rebind();
}
I cant't findcontrol "ddlPosition" and return null
Thanks in advance.
protected void radgrdList_EditCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
this.radgrdList.MasterTableView.Items[e.Item.ItemIndex].Edit = true;
GridEditableItem item = (GridEditableItem)e.Item;
Guid id = (Guid)item.GetDataKeyValue("CatalogID");
ContentCatalog catalog = new ContentCatalog().GetOne(id);
DropDownList ddlPosition = (DropDownList)item["position"].FindControl("ddlPosition");
if (!String.IsNullOrEmpty(catalog.Position))
{
ddlPosition.Items.FindByValue(catalog.Position);
}
this.radgrdList.MasterTableView.Rebind();
}
I cant't findcontrol "ddlPosition" and return null
Thanks in advance.