Approved
Last Updated: 26 Mar 2019 14:57 by ADMIN
ADMIN
Vessy
Created on: 28 Nov 2017 14:13
Category: ColorPicker
Type: Bug Report
0
RadColorPicker remains clickable when disabled on client-side
RadColorPicker remains clickable when its set_enabled(false) method is called.

Steps to reproduce:
1. Run this code:

        <telerik:RadColorPicker ID="RadColorPicker1" runat="server" ShowIcon="true" ShowEmptyColor="false" RenderMode="Lightweight" />
        <br /><br /><br />
        <select id="mySelect" onchange="EnableDisableColorPicker()">
            <option value="1">1</option>
            <option value="2" selected="selected">2</option>

        </select>
        <script>
            function EnableDisableColorPicker() {
                var x = document.getElementById("mySelect").value;
                var colorPicker = $find("<%= RadColorPicker1.ClientID %>");
                if (x == 1) {
                    colorPicker.set_enabled(false);

                } else {
                    colorPicker.set_enabled(true);

                }
            }
        </script>

2. Select option 1.

Result: RadColorPicker gets disabled, but remains clickable
0 comments