Can I customize a RadGrid's summary text?

2 posts, 0 answers
  1. A
    A avatar
    35 posts
    Member since:
    Nov 2015

    Posted 06 Oct 2016 Link to this post

    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.

  2. Eyup
    Admin
    Eyup avatar
    3215 posts

    Posted 10 Feb Link to this post

    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.
Back to Top