Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > custom layout : RadioButtonList

Reply
Thread Tools

custom layout : RadioButtonList

 
 
M Aamir Maniar
Guest
Posts: n/a
 
      07-30-2003
Well you can create your own custom web control to achive
this

regards
m aamir maniar

>-----Original Message-----
>Hi!
>
>I'm wondering how I can add extra html to a

radiobuttonList, so that I can
>control how:
>-the whole radioButtonList is rendered.
>-each of the radiobutton elements are rendered.
>
>What I am basically trying to do is to combine x

radioButtonlists, so that
>the output will look like this:
>----------------------------------------------------------

------------------
><table border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td>True</td>
> <td>False</td>
> <td>Don't know</td>
> <td></td>
> </tr>
> <tr>
> <td><input id="question_4_0_0" type="radio" value="9"
>name="question_4_0"></td>
> <td><input id="question_4_0_1" type="radio" value="10"
>name="question_4_0"></td>
> <td><input id="question_4_0_2" type="radio" value="-"
>name="question_4_0"></td>
> <td> Answer 1</td>
> </tr>
> <tr>
> <td><input id="question_4_1_0" type="radio" value="1"
>name="question_4_1"></td>
> <td><input id="question_4_1_1" type="radio" value="2"
>name="question_4_1"></td>
> <td><input id="question_4_1_2" type="radio" value="-"
>name="question_4_1"></td>
> <td> Answer 2</td>
> </tr>
> <tr>
> <td><input id="question_4_2_0" type="radio" value="1"
>name="question_4_2"></td>
> <td><input id="question_4_2_1" type="radio" value="2"
>name="question_4_2"></td>
> <td><input id="question_4_2_2" type="radio" value="-"
>name="question_4_2"></td>
> <td> Answer 3</td>
> </tr>
></table>
>----------------------------------------------------------

------------------
>
>The radiobuttonlists are dynamically created, using data

from a database.
>My idea was to add the <table> start and end tags

manually as I am looping
>through the database.
>
>What I need though, is a way to :
>-add <tr> start and end tags for each radioButtonlist
>-add <td> start and end tags for each radioButton within

each
>radioButtonlist.
>
>I imagine that there is a method I can override, that

deals with the
>creation of the radiobuttonlist, and that there also is a

method I can
>override, that creates the child elements (each

radiobutton) within the
>radiobuttonlist.
>
>If anyone knows what methods I need to override, and how

I do this, I would
>really appreciate it.
>
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com ASP .Net 1 06-19-2006 10:06 AM
RadioButtonList layout problem =?Utf-8?B?T2xlZw==?= ASP .Net 4 08-18-2005 02:03 PM
RadioButtonList layout problem Oleg ASP .Net Web Controls 0 08-17-2005 03:36 PM
DataList inside a Grid Layout Panel (<DIV>) item layout problem Rick Spiewak ASP .Net 3 08-26-2003 04:22 AM
custom layout : RadioButtonList Christian H ASP .Net 1 07-30-2003 03:43 AM



Advertisments