Posted 15 Aug 2011 Link to this post
private void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
GridDataItem dataItem = e.Item as GridDataItem;
GridEditManager manager = dataItem.EditManager;
IGridColumnEditor editor = manager.GetColumnEditor("Locked");
TextBox box = (editor as GridTextBoxColumnEditor).TextBoxControl;
if (box.Text == "1")
dataItem["EditCommandColumn"].Controls[0].Visible = false;
}
else
dataItem["EditCommandColumn"].Controls[0].Visible = true;
Posted 18 Aug 2011 Link to this post
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
if
(e.Item
is
GridDataItem)
GridDataItem dataItem = e.Item
as
GridDataItem;
(dataItem[
"Locked"
].Text ==
"1"
)
dataItem[
"EditCommandColumn"
].Controls[0].Visible =
false
;
true
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.