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

How to improve checkbox visibility of a checkbox column in regular mode

4 Answers 281 Views
Grid
This is a migrated thread and some comments may be shown as answers.
suresh
Top achievements
Rank 1
suresh asked on 05 Dec 2011, 07:09 AM
Hi there,
Im using radgrid with checkboxcolumn. Im aware of, checkbox is only  enable on editable mode(i.e..after clicking edit button). My problem is, for a normal mode checkbox doesn't show clearly in  some browsers like mozila,etc... I need to improve the visibility of the checkbox in normal mode(probably set the border color)..Is it possible to apply css for checkbox inside a checkboxcolumn or highlight the border color in a normal mode?....Thanks in advance,,

Regards,
Suresh

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Dec 2011, 02:07 PM
Hello Suresh,

You could apply the following css on the page in order to apply the required setting:
<style type="text/css">
        input[type=checkbox][disabled]
        {
            outline: 2pxsolidblack;
        }
    </style>

 I hope this helps.



Greetings,
Maria Ilieva
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
suresh
Top achievements
Rank 1
answered on 07 Dec 2011, 02:28 PM
Thanks Maria Ilieva ,
Thats working..But border lines applied few inches away from the checkbox for all sides(i.e square of the checkbox). please refer this link http://jsfiddle.net/hGptT/4/  ..But i want just improve the visibility of checkbox.

Regards,
Suresh
0
Maria Ilieva
Telerik team
answered on 12 Dec 2011, 09:11 AM
Hello Suresh,

Unfortunately this is the only possible approach for changing the appearance of disabled controls in the IE browser. This is browser behaviour and all disabled controls are grayed out. The proposed solution is currently the only possible option to modify that browser beahvior.

Greetings,
Maria Ilieva
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
suresh
Top achievements
Rank 1
answered on 12 Dec 2011, 09:26 AM
Thanks  Maria Ilieva ,
I solved that problem by using the attribute  'opacity' in css..Checkbox looks better in disable mode..In some cases that attribute needs to include '!important'(to avoid default css settings)..Ex
<style type="text/css">
        input[type=checkbox][disabled]
        {
           opacity:3 !important;
        }
        or
          .cbColumn(Refer this css class into the checkboxcolumn)
           {
             opacity:3 !important;
            }
    </style>
This approach working properly in both IE and mozila firefox...
Regards,
Suresh
Tags
Grid
Asked by
suresh
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
suresh
Top achievements
Rank 1
Share this question
or