I've run into two problems after switching my 4.6 grid to use the new 2008.1.415 grid, both relating to the sort direction arrow image in the grid header.
First, SortAscImageUrl and SortDescImageUrl no longer seem to be doing anything at all. No matter what I put in there, I get the standard little v and ^ arrow images. I'm using a customized version of the WebBlue skin. Every other part of the skin appears to be working. I might be doing something wrong with the paths, but I don't think so, since this had been working in 4.6.
Second, in my GridTemplateColumn, my column heading is an icon, instead of text. However, if I try to set ShowSortIcon="false" (which says it should turn off the sort arrow icon), it actually turns off my column heading icon! Ack!
Here's an excerpt of my ASPX. I've cut out some of the regular columns which are working properly:
Basically, the GridTemplateColumn shows a little diskette icon as its header. Then, for rows representing data which needs to be saved, it shows the diskette icon again, or just a blank for other rows. If I set ShowSortIcon="false" (as in the snipped above), I just see a blank gap in the column header -- no diskette icon there. And, without ShowSortIcon="false", the SortAsc and SortDesc images don't use the images I want. Note that the path to my SortAsc and SortDesc images is the same as the path to the HeaderImageUrl (which does display), so I know my paths are good.
The SortAsc and SortDesc image properties don't seem to have any effect on any of the grid columns, but it's only for this template column where I had a need to override the defaults.
Thanks for your advice.
First, SortAscImageUrl and SortDescImageUrl no longer seem to be doing anything at all. No matter what I put in there, I get the standard little v and ^ arrow images. I'm using a customized version of the WebBlue skin. Every other part of the skin appears to be working. I might be doing something wrong with the paths, but I don't think so, since this had been working in 4.6.
Second, in my GridTemplateColumn, my column heading is an icon, instead of text. However, if I try to set ShowSortIcon="false" (which says it should turn off the sort arrow icon), it actually turns off my column heading icon! Ack!
Here's an excerpt of my ASPX. I've cut out some of the regular columns which are working properly:
<telerik:RadGrid ID="InstanceListGrid" runat="server" AutoGenerateColumns="False" AllowSorting="True" Skin="CDSWebBlue" |
CssClass="TableHandCursor" GridLines="None" OnSortCommand="InstanceListGrid_SortCommand" Width="765px" |
OnItemDataBound="InstanceListGrid_ItemDataBound" EnableEmbeddedSkins="false"> |
<MasterTableView DataKeyNames="instance_id"> |
<ExpandCollapseColumn Visible="False"/> |
<RowIndicatorColumn Visible="False"/> |
<Columns> |
<telerik:GridBoundColumn DataField="port_desc" HeaderText="Description" UniqueName="port_desc" > |
<HeaderStyle Width="200px" /> |
</telerik:GridBoundColumn> |
<telerik:GridTemplateColumn SortExpression="NeedToSave" HeaderImageUrl="~/Resources/Images/icon_02a_save_16x16.gif" HeaderStyle-Wrap="false" ShowSortIcon="false" SortAscImageUrl="~/Resources/Images/icon_99_placeholder.gif" SortDescImageUrl="~/Resources/Images/icon_99_placeholder.gif"> |
<HeaderStyle Width="26px" /> |
<ItemTemplate> |
<asp:Image ID="Image1" ImageUrl="~/Resources/Images/icon_02a_save_16x16.gif" runat="server" /> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
Basically, the GridTemplateColumn shows a little diskette icon as its header. Then, for rows representing data which needs to be saved, it shows the diskette icon again, or just a blank for other rows. If I set ShowSortIcon="false" (as in the snipped above), I just see a blank gap in the column header -- no diskette icon there. And, without ShowSortIcon="false", the SortAsc and SortDesc images don't use the images I want. Note that the path to my SortAsc and SortDesc images is the same as the path to the HeaderImageUrl (which does display), so I know my paths are good.
The SortAsc and SortDesc image properties don't seem to have any effect on any of the grid columns, but it's only for this template column where I had a need to override the defaults.
Thanks for your advice.