Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
BTHOMASinOHIO #1
Removing the focus (dotted line around the checkbox) when...
I have a datagrid inwhich I wanted some Roles to be able to change and
postback while others would not see a change. Instead of using the
enabled/disabled, because I didn't like the shading out of the
checkbox, they are kept enabled, but depend on the Role, the Post back
is turned Off/On and an attribute on the Clicked event is added to
keep (or not keep) the box checked.
(MY CODE)
Dim myaccess As String = Session.Item("ProviderLoginId")
If Session.Item("ROLE") = XYZ Then
CheckBoxStatus.AutoPostBack = False
CheckBoxStatus.Attributes.Add
("onClick", CheckBoxStatus.ClientID + ".checked =
!"+CheckBoxStatus.ClientID + ".checked;")
Else
CheckBoxStatus.AutoPostBack = True
End If
This all works great, accept when the checkbox is clicked, the
checkbox gets "focus" with a thin dotted box around it.
How can I turn that attribute off?
What is it called? Focus?
Thanks
BTHOMASinOHIO Guest
-
the annoying dotted line
is there a way to get rid of the annoying dotted line that appears around hyperlinked images? -
Removing focus
I have some form fields. I would like to remove focus from a field when: - the enter key is pressed - the mouse is clicks outside a field How? -
creating an oulinepath from a dotted line
Can somebody help me by telling me how to create an oulinepath from a dotted line? I prefere not to trace the line with the pen tool, if you know... -
Dotted line in MX
For some reason I can not come up with a dotted line effect in MX I know its in there and i know it was in the other versions of Firework but for... -
Revisiting Old Issue: Removing line breaks from comment tags
TechNote 15372 (Removing line breaks from comment tags) mentions the SourceFormat.txt file. I have no such file on my system (Win XP) when using DW... -
Prasad #2
Re: Removing the focus (dotted line around the checkbox) when...
Hi
You can also use this :
<input type=chekcbox onfocus="this.blur()">
this will remove focus from the checkbox when focus is given.
HTH
Prasad
"BTHOMASinOHIO" <bthomas71chevy@yahoo.com> wrote in message
news:dbee16f6.0310071216.1c203128@posting.google.c om...> I have a datagrid inwhich I wanted some Roles to be able to change and
> postback while others would not see a change. Instead of using the
> enabled/disabled, because I didn't like the shading out of the
> checkbox, they are kept enabled, but depend on the Role, the Post back
> is turned Off/On and an attribute on the Clicked event is added to
> keep (or not keep) the box checked.
>
> (MY CODE)
> Dim myaccess As String = Session.Item("ProviderLoginId")
> If Session.Item("ROLE") = XYZ Then
> CheckBoxStatus.AutoPostBack = False
> CheckBoxStatus.Attributes.Add
> ("onClick", CheckBoxStatus.ClientID + ".checked =
> !"+CheckBoxStatus.ClientID + ".checked;")
> Else
> CheckBoxStatus.AutoPostBack = True
> End If
>
>
> This all works great, accept when the checkbox is clicked, the
> checkbox gets "focus" with a thin dotted box around it.
>
> How can I turn that attribute off?
> What is it called? Focus?
>
> Thanks
Prasad Guest



Reply With Quote

