Hi,
I am new to Telerik and have some requirements where I need to change ConfirmText Property of GridButtonColumn from ItemDataBound event of radGrid.
Below is the event I am using where I need to change the ConfirmText property:
I am new to Telerik and have some requirements where I need to change ConfirmText Property of GridButtonColumn from ItemDataBound event of radGrid.
Below is the event I am using where I need to change the ConfirmText property:
protected void RgDictionary_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem && !e.Item.IsInEditMode && e.Item.NamingContainer.NamingContainer is RadGrid)
{
GridDataItem dataBoundItem = e.Item as GridDataItem;
bool
IsChildDictionary = (dataBoundItem["IsChildDictionary"].Controls[0] as CheckBox).Checked;
if (IsChildDictionary)
{
dataBoundItem[
"RawString"].Style.Add("color", "green");
(dataBoundItem[
"DeleteColumn"].Controls[0] as LinkButton).Text = "Make Local";
//Here I want to change ConfirmText Property Value
(dataBoundItem[
"EditCanonicalForm"].Controls[0] as LinkButton).Style.Add("display", "none");
}
}