When I try to execute the line of code
RadGridUserTypeWorkflows.MasterTableView.CommandItemSettings.AddNewRecordImageUrl =
"~/App_Themes/" + Page.Theme + "/Grid/AddRecord_na.gif"; to change the image of the
"AddNewRecordButton" Command Item button in a Radgrid , it doesn't change the Image.
Also after executing the above line of code and if we try to access this control
using the following code
Button imgAddNewRecord = (Button)e.Item.FindControl("AddNewRecordButton");
in the ItemCreated event of the grid it returns null.
But if I execute the commands in the follwing manner it return the control but the image
icon is not changed.
Button imgAddNewRecord = (Button)e.Item.FindControl("AddNewRecordButton");
RadGridUserTypeWorkflows.MasterTableView.CommandItemSettings.AddNewRecordImageUrl =
"~/App_Themes/" + Page.Theme + "/Grid/AddRecord_na.gif";
How do we change the Image of the "AddNewRecordButton" programatically and disable the
same control.
RadGridUserTypeWorkflows.MasterTableView.CommandItemSettings.AddNewRecordImageUrl =
"~/App_Themes/" + Page.Theme + "/Grid/AddRecord_na.gif"; to change the image of the
"AddNewRecordButton" Command Item button in a Radgrid , it doesn't change the Image.
Also after executing the above line of code and if we try to access this control
using the following code
Button imgAddNewRecord = (Button)e.Item.FindControl("AddNewRecordButton");
in the ItemCreated event of the grid it returns null.
But if I execute the commands in the follwing manner it return the control but the image
icon is not changed.
Button imgAddNewRecord = (Button)e.Item.FindControl("AddNewRecordButton");
RadGridUserTypeWorkflows.MasterTableView.CommandItemSettings.AddNewRecordImageUrl =
"~/App_Themes/" + Page.Theme + "/Grid/AddRecord_na.gif";
How do we change the Image of the "AddNewRecordButton" programatically and disable the
same control.