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

Table Summary Attribute

2 Answers 165 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Marty
Top achievements
Rank 1
Marty asked on 31 Jul 2012, 09:18 PM
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 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 01 Aug 2012, 07:42 AM
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.
0
Accepted
Ivan Zhekov
Telerik team
answered on 01 Aug 2012, 12:56 PM
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.
Tags
ComboBox
Asked by
Marty
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Share this question
or