Is there a proper way to override the 'Expand' and 'Collapse' values for the title attribute in the <input> control for the ExpandCollapse column when looking at hierarchical data in RadGrid?
I've tried the following during the OnDataBound event, but the title attribute shows up twice. Once with the radgrid value and then mine. Can I even access the opaque(?) object that has these values in it?
BTW, setting the tooltip for the parent <td> element works just fine.
I've tried the following during the OnDataBound event, but the title attribute shows up twice. Once with the radgrid value and then mine. Can I even access the opaque(?) object that has these values in it?
BTW, setting the tooltip for the parent <td> element works just fine.
protected void OutsideLawFirmGrid_OnDataBound(object sender, GridItemEventArgs e)Is there some later stage on the server where I can intercept things and iteratate over all the GridDataItems and replace this value? I tried to place an iterative version of this in the Page_PreRender w/the same results.
{
if (e.Item is GridDataItem)
{
GridDataItem item = e.Item as GridDataItem;
item["ExpandColumn"].ToolTip = "View Contacts";
System.Web.UI.WebControls.Button btn = (System.Web.UI.WebControls.Button)item["ExpandColumn"].Controls[0];
btn.Attributes.Add("title", "View Contacts");
btn.ToolTip = "View Contacts";
}
}