4 Answers, 1 is accepted
0
Hello Sudheer,
You can use the RadGrid's ColumnCreated event, check in the event arguments whether the column is GridExpandColumn and if so, set the ExpandImageUrl and CollapseImageUrl properties. These two properties work only if you set them programmatically.
protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
if (e.Column is GridExpandColumn)
{
(e.Column as GridExpandColumn).ButtonType = GridExpandColumnType.ImageButton;
(e.Column as GridExpandColumn).ExpandImageUrl = ".....";
(e.Column as GridExpandColumn).CollapseImageUrl = ".......";
}
}
Best wishes,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can use the RadGrid's ColumnCreated event, check in the event arguments whether the column is GridExpandColumn and if so, set the ExpandImageUrl and CollapseImageUrl properties. These two properties work only if you set them programmatically.
protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
if (e.Column is GridExpandColumn)
{
(e.Column as GridExpandColumn).ButtonType = GridExpandColumnType.ImageButton;
(e.Column as GridExpandColumn).ExpandImageUrl = ".....";
(e.Column as GridExpandColumn).CollapseImageUrl = ".......";
}
}
Best wishes,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

sudheer
Top achievements
Rank 2
answered on 07 Mar 2009, 02:51 PM
Hi Dimo,
Thanks alot , really ur reply helped me very much.
Thanks alot , really ur reply helped me very much.
0

sudheer
Top achievements
Rank 2
answered on 08 Mar 2009, 03:29 PM
Hi Dimo,
I need same solution in groupbyexpression grid also , to acheive that i used the below code .
it's working but on mouseover hand symbol is not coming ,how can i acheive .pls guide
I need same solution in groupbyexpression grid also , to acheive that i used the below code .
protected void ProjectListGrid_ColumnCreated(object sender, GridColumnCreatedEventArgs e) |
{ |
if (e.Column is GridGroupSplitterColumn) |
{ |
//(e.Column as GridGroupSplitterColumn).ColumnType = GridExpandColumnType.ImageButton; |
(e.Column as GridGroupSplitterColumn).ExpandImageUrl = "~/App_Themes/images/SinglePlus.gif"; |
(e.Column as GridGroupSplitterColumn).CollapseImageUrl = "~/App_Themes/images/SingleMinus.gif"; |
} |
} |
0

Princy
Top achievements
Rank 2
answered on 09 Mar 2009, 06:26 AM
Hi sudheer,
I have tried your code using latest latest version and old version, with and without using the skin for RadGrid and found that it is working fine for me. I am getting the mousehover cursor image without any issue. Could you provide more information about the ASPX of RadGrid that you tried?
Thanks,
Princy.