Removing the focus (dotted line around the checkbox) when...

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. the annoying dotted line
      is there a way to get rid of the annoying dotted line that appears around hyperlinked images?
    2. 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?
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139