Jorge Pardo
Top achievements
Rank 1
Jorge Pardo
asked on 13 May 2010, 02:24 PM
How do I change the Expand Icon to (+) sign and Collapse Icon to (-) sign for the RadGrid Heirarchy.
7 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 13 May 2010, 02:57 PM
Hello,
Try the following markup in order to set the custom expand/collapse images.
ASPX:
Thanks,
Princy.
Try the following markup in order to set the custom expand/collapse images.
ASPX:
<ExpandCollapseColumn ExpandImageUrl="../Images/img1.gif" CollapseImageUrl="../Images/img2.gif"> |
</ExpandCollapseColumn> |
Thanks,
Princy.
0
Jorge Pardo
Top achievements
Rank 1
answered on 13 May 2010, 03:57 PM
Hi Princy,
I have tried that, but it doesnt work. Are there other Settings that I should do to make it work?
I have tried that, but it doesnt work. Are there other Settings that I should do to make it work?
<telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="odsValidatorList"
GridLines="None" EnableTheming="False"
onselectedindexchanged="RadGrid2_SelectedIndexChanged"
onitemcommand="RadGrid2_ItemCommand"
onitemdatabound="RadGrid2_ItemDataBound1" Skin="WebBlue">
<
HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu>
<
MasterTableView AutoGenerateColumns="False" DataKeyNames="CountryID,CityID"
DataSourceID="odsValidatorList">
<
ExpandCollapseColumn ExpandImageUrl="../images/Expand.gif" CollapseImageUrl="../images/Collapse.gif" >
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
<DetailTables>
Thanks,
Jorge.
0
Hi Jorge,
Please avoid posting the same question in the forums and in a support ticket. If you do it, notify in the support thread.
You can change the expand / collapse hierarchy images by using the ColumnCreated event, as demonstrated in this forum thread:
http://www.telerik.com/automated-testing-tools/community/forums/aspnet-ajax/grid/customize-icons-instead-of-expand-and-collpase-images.aspx#761469
Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Please avoid posting the same question in the forums and in a support ticket. If you do it, notify in the support thread.
You can change the expand / collapse hierarchy images by using the ColumnCreated event, as demonstrated in this forum thread:
http://www.telerik.com/automated-testing-tools/community/forums/aspnet-ajax/grid/customize-icons-instead-of-expand-and-collpase-images.aspx#761469
Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jorge Pardo
Top achievements
Rank 1
answered on 16 May 2010, 11:14 AM
Hi Dimo,
Thank you so much, its working now.
Jorge.
Thank you so much, its working now.
Jorge.
0
Nicolaï
Top achievements
Rank 2
answered on 22 Nov 2012, 10:45 AM
0
Shinu
Top achievements
Rank 2
answered on 22 Nov 2012, 10:53 AM
Hi,
Try the following link.
http://www.telerik.com/community/forums/aspnet-ajax/grid/customize-icons-instead-of-expand-and-collpase-images.aspx
Thanks,
Shinu.
Try the following link.
http://www.telerik.com/community/forums/aspnet-ajax/grid/customize-icons-instead-of-expand-and-collpase-images.aspx
Thanks,
Shinu.
0
Nicolaï
Top achievements
Rank 2
answered on 22 Nov 2012, 10:57 AM
Thanks!