This is a migrated thread and some comments may be shown as answers.

Delete column image changed since upgrade

4 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clyde
Top achievements
Rank 1
Clyde asked on 19 Jun 2012, 09:13 PM
Since I upgraded to the latest Telerik controls, my RadGrid Delete column no longer accepts my ImageUrl, but shows the default red Delete X instead. The problem exists only when I use CommandName="Delete". If I label it "CustomDelete" or something else, it works fine.

I have 40-50 pages like this and would rather not have to go and modify each one, as well as the code behind to accommodate the new CommandName.

Is there a fix for this? Is this expected? It only started happening in this Q2 release.

Here is the code
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton" ImageUrl="~/images/icons/trash_16x16.gif">
    <HeaderStyle Width="20px"></HeaderStyle>
    <ItemStyle Width="20px"></ItemStyle>
</telerik:GridButtonColumn>


Thanks
Clyde

4 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 22 Jun 2012, 07:58 AM
Hello,

We are aware of this issue and it is fixed in our latest internal build. You can upgrade to it and verify if the problem still exists.

Greetings,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Clyde
Top achievements
Rank 1
answered on 22 Jun 2012, 11:53 AM
Hello Milena,

I was hoping that you could provide me with a workaround for the current production release. I do not want to have to switch off the CDN or deploy internal builds into my production environment. We have a new version of our application we need to release and need to use the 607 controls release to fix previous bugs.

Many thanks
Clyde
0
Milena
Telerik team
answered on 22 Jun 2012, 01:26 PM
Hello,

A possible workaround is to set ImageUrl property programmatic as it is shown in the example below:
 
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
  {
      if (e.Item is GridDataItem)
      {
          ImageButton img = (ImageButton)item["Column1"].Controls[0];
          img.ImageUrl = "Images/imageOne.png";
      }
  }


Greetings,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jonathan
Top achievements
Rank 1
answered on 09 Aug 2012, 04:12 AM
Hi Guys,

This issue appears to have been fixed in 2012 Q2 724.40.

Regards,
Jonathan
Tags
Grid
Asked by
Clyde
Top achievements
Rank 1
Answers by
Milena
Telerik team
Clyde
Top achievements
Rank 1
Jonathan
Top achievements
Rank 1
Share this question
or