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

custom sort icon

1 Answer 366 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 19 Oct 2015, 09:03 PM
How can i change the sort icon to "glyphicon-sort-by-attributes" and "glyphicon-sort-by-attributes-alt" icons as attached.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 20 Oct 2015, 11:40 AM
Hello Manoj,

Thank you for contacting Telerik Support.

In order to use glyph icons instead of the built-in sort icons of the grid you will have to override the default styles for the sort icons and use the same styles as the glyph classes.

For your convenience, following is an example for overriding the default icons with the icons that you have mentioned in your post:
On a side note, please have in mind that the glyph approach needs specific class names to be added to the element in order to load the icons and for using such custom icons (without overriding the built-in styles), you need to use templates, as demonstrated in the following example for the Menu widget:
If any questions related to the built-in functionality of the widget arise, please feel free to contact us again.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Manoj
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or