Table Summary Attribute

3 posts, 1 answers
  1. Marty
    Marty avatar
    1 posts
    Member since:
    Nov 2008

    Posted 31 Jul 2012 Link to this post

    Is there any way to remove of customize the summary attribute that is included with the HTML <table> that wraps the combobox code? The default value (summary="combobox") is a bit too vague and confusing for screen readers.  I am currently using the web UI components from 2008 (e.g. FILEVERSION 2008, 2, 826, 20).

    Thanks.
  2. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    650 posts

    Posted 01 Aug 2012 Link to this post

    Hello, Marty.

    It is possible to remove the attribute with JavaScript or with server side adaptors. Yet, the version you are using is 4 (four) years old and such solution may break your code.

    It should be noted that we are working on improvements of the combo box that will be available with the 2012 Q3 release, but in order to obtain those improvements, you will need to upgrade to 2012 Q3

    However, upgrading after four years might be a difficult task as things have changed significantly.

    Kind regards,
    Ivan Zhekov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Answer
    Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    650 posts

    Posted 01 Aug 2012 Link to this post

    Hello, Marty.

    Here is one possible solution note:

    (function( global, $ ) {
     
        $(document).ready(function() {
         
            // this will find ALL tables within ALL comboboxes
            var $table = $(".RadComboBox").children("table");
             
            // this removes the summary from all found tables
            $table.removeAttr("summary");
         
        });
     
    })(window, $telerik.$);


    What it does is on document load (document as in just HTML) it searches for all tables within the the RadComboBox and removes the summary attribute.

    Note: the snippet must be placed at the end of the document to ensure $telerik.$ is loaded. If you are using a different version of jQuery, it doesn't matter where you place the snippet, just make sure you use the right jQuery.

    All the best,
    Ivan Zhekov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top