Hi,
I am using Radgrid in one of my project ,i want to get editImageUrl and want to change it from code behind;
When i run the application and if i try to get the editimageurl i am getting the following error.
"Object reference not set to an instance of an object."
The html i am using is
if i try to get "EditImageUrl " of grideditcommandcoloumn it is throughting the above error.
Note:I tried to assign GridEditCommandColoumn from codebehind same issue is coming
Code:
Please help me on this.
I am using Radgrid in one of my project ,i want to get editImageUrl and want to change it from code behind;
When i run the application and if i try to get the editimageurl i am getting the following error.
"Object reference not set to an instance of an object."
The html i am using is
<
MasterTableView DataKeyNames="Id" AutoGenerateColumns="false" CommandItemDisplay="Top">
<Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Edit column" ButtonType="ImageButton"
EditImageUrl = "
~/Alarm.png"
>
<ItemStyle Width="50px" />
</telerik:GridEditCommandColumn>
......if i try to get "EditImageUrl " of grideditcommandcoloumn it is throughting the above error.
Note:I tried to assign GridEditCommandColoumn from codebehind same issue is coming
Code:
GridEditCommandColumn edc = new GridEditCommandColumn();
edc.ButtonType =
GridButtonColumnType.ImageButton;
edc.EditImageUrl =
"~/Alarm.png";
Response.Write(edc.EditImageUrl);
Please help me on this.