Adding Attributes to RadioButtonList Items?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Adding Attributes to RadioButtonList Items?

    I am trying to use a RadioButtonList bound to a custom datasource to
    acomplish some user functionality. I want to add various
    onmouseover/onmouseout/onblur/onfocus events to each individual ListItem
    housed by the RadioButtonList; however, the rbl.Items[n].Attributes.Add(
    eventName, callFunction ) model does not work for this--I can only add
    attributes to the rbl object itself: Is there a built-in way to do this that
    I am missing (without creating a custom RadioButtonList server control)?

    Thank in advance for any advice,
    Mike S


    Mike S Guest

  2. Similar Questions and Discussions

    1. Problem adding attributes to DataListItem..
      Guys, I have created a custom class that derives from DataList so that I can add some custom client side functionality into each new item row...
    2. Adding items to a cfgrid
      Hi! I'm trying to add items to a cfgrid using form elements. E.g. I have fname textfield, lname textfield, market comboBox, etc in my form I want...
    3. changing attributes on multiple items at once
      I know MX11 has changed a bunch of stuff...I haven't been using it much lately, but now want to draw some illustrations. I'm finding that I can't...
    4. Dynamically Created RadioButtonList Items & ViewState
      I'm having a variation on the typical problem with saving ViewState of dynamically created web controls. I have two radiobuttonlist controls (call...
    5. Adding attributes to xml root element.
      Namaskara! Can anybody suggest a simple way to add or remove an attribute to the root element in an xml file ?
  3. #2

    Default Re: Adding Attributes to RadioButtonList Items?

    I guess I'll build my own custom implementation; I will post a link to it
    here when it's finished.

    Does anyone have any features they would like to see implemented?

    [k-e-y-w-o-r-d-s]
    -- Custom RadioButtonList Server Control --
    -- Custom Server Control --
    -- Radio Button List --
    -- RadioButtonList --


    "Victor Garcia Aprea [MVP]" <vga@NOobiesSPAM.com> wrote in message
    news:%23gDWrhoSDHA.2252@TK2MSFTNGP12.phx.gbl...
    > Hi Mike,
    >
    > You've hit a well-known bug. Do a quick search on [url]http://groups.google.com[/url]
    > to find tons of post about it. I've posted about it more than a year ago
    > along with some code to work-around it.
    >
    > --
    > Victor Garcia Aprea
    > Microsoft MVP | ASP.NET
    > Looking for insights on ASP.NET? Read my blog:
    > [url]http://obies.com/vga/blog.aspx[/url]
    > To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    > and not by private mail.
    >
    > "Mike S" <mikes@n-o.sp-a.m.pac.odedodea.edu> wrote in message
    > news:OQmVdcoSDHA.1804@TK2MSFTNGP11.phx.gbl...
    > > I am trying to use a RadioButtonList bound to a custom datasource to
    > > acomplish some user functionality. I want to add various
    > > onmouseover/onmouseout/onblur/onfocus events to each individual ListItem
    > > housed by the RadioButtonList; however, the rbl.Items[n].Attributes.Add(
    > > eventName, callFunction ) model does not work for this--I can only add
    > > attributes to the rbl object itself: Is there a built-in way to do this
    > that
    > > I am missing (without creating a custom RadioButtonList server control)?
    > >
    > > Thank in advance for any advice,
    > > Mike S
    > >
    > >
    >
    >

    Mike S 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