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

non-css Expand column

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
matt
Top achievements
Rank 1
matt asked on 14 Sep 2008, 03:06 PM
telerik,

when a RadGrid-equipped page has its CSS disabled, there is a problem w/ the Expand/Collaspe column icons (+/-). currently on a no-CSS page, they render as a small, empty Button. this is not helpful to a user.

instead, the icons should render as a button w/ the text "Expand" or "Collaspe". this way the user knows they can do something w/ it as a UI element.

i am using a custom-skinned RadGrid w/ the latest version of RadControls AJAX.


thanks!
matt

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Sep 2008, 05:41 AM
Hello Matt,

If you want to support RadGrid with CSS turned off, it is recommended that you set the ImagesPath property, so that all SpriteButtons ( http://www.telerik.com/help/aspnet-ajax/css-sprites.html ) are switched to ImageButtons.

When setting ImagesPath, you should make sure that all images required for RadGrid buttons exist in the specified location and have valid names:

http://www.telerik.com/help/aspnet-ajax/grdskins.html


Alternatively, you can control the ButtonType of the hierarchy expand/collapse buttons programmatically:


        protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
        {
            if (e.Column is GridExpandColumn)
            {
                (e.Column as GridExpandColumn).ButtonType = GridExpandColumnType.LinkButton;
            }
        }



Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
matt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or