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

Can I customize a RadGrid's summary text?

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
A
Top achievements
Rank 1
A asked on 06 Oct 2016, 10:01 PM

HTML5 deprecates the summary attribute on a <table> element. So I want to assign an empty text to that attribute.

How can I do that?

Your help is appreciated.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Feb 2017, 02:42 PM
Hello,

You can try the following approach to clear the generated summary:
<ClientSettings>
    <ClientEvents OnGridCreated="gridCreated" />
</ClientSettings>
JavaScript:
function gridCreated(sender, args) {
    $(sender.get_masterTableView().get_element()).removeAttr("summary");
 
    // alternative approach
    //sender.get_masterTableView().get_element().summary = "";
}

That should do the trick.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
A
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or