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

checkboxes with Javascript not working on IE11

1 Answer 96 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bhushan
Top achievements
Rank 1
Bhushan asked on 30 Apr 2014, 10:13 AM
hello,
         i want to select all checkboxes on click of header checkbox .it works on other browser except ie 11..?
is there any solution

javascript function -->

function SelectAllCheckBox(headerCheckBox) {
                try {
                    debugger;
                    var clientID = "";
                    for (var i = 0; i < registeredElements.length; i++) {
                        clientID = registeredElements[i];

                        var checkbox = document.getElementById(clientID);
                        if (checkbox) {
                            if (!headerCheckBox.checked)
                                checkbox.defaultChecked = selectDeselectAllFlag;
                            else
                                checkbox.defaultChecked = selectDeselectAllFlag;

                        }
                    }
                    selectDeselectAllFlag = !selectDeselectAllFlag;
                    return true;

                }
                catch (er) {

                }
            }
    

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 05 May 2014, 10:32 AM
Hi Bhushan,

Can you please try to use GridClientSelectColumn and verify that it is suitable for your scenario?
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/selecting/row-selection/defaultcs.aspx

Looking forward to your reply.


Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
Bhushan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or