radiobuttonlist

ASP.NET RadioButtonList in Repeater?

為{幸葍}努か 提交于 2019-12-10 17:52:52
问题 aspx file: <asp:Repeater ID="Repeater_sorular" runat="server"> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <div class="div_soru"> <div class="div_soru_wrapper"> <%#Eval("Subject")%> <asp:RadioButtonList ID="RadioButtonList_secenekler" runat="server" Visible='<%# Eval("TypeId").ToString() == "1" %>' DataSource='<%#Eval("Secenekler")%>' DataTextField='<%#Eval("OptionName")%>' DataValueField='<%#Eval("OptionId")%>'> </asp:RadioButtonList> <asp:CheckBoxList ID="CheckBoxList_secenekler"

RadioButtonList OnSelectedIndexChanged

∥☆過路亽.° 提交于 2019-12-08 16:01:26
问题 I'm looking for the best way to handle a change of index being selected on a ASP.net RadioButtonList (C# code behind). I have 3 list items. For the first one, I want it to show a hidden asp:textbox on the page, whereas the other 2 will hide the textbox. //asp.net side <asp:RadioButtonList ID="_indicatorAckType" runat="server" RepeatDirection="Horizontal" enabled="true" OnSelectedIndexChanged="onAckTypeChanged"> <asp:ListItem Text="None" /> <asp:ListItem Text="SHOW" /> <asp:ListItem Text="HIDE

onchange not working with radio button

Deadly 提交于 2019-12-08 15:42:05
问题 I have a few radio buttons which should call hider(something); when they change, meaning when they are checked or unchecked. This works, i.e. when checked they call the JS function, however, if they're unchecked due to selecting another radio button from that group, it does not call the js script again. Do I need to use something else than onchange? This is what the radio buttons look like at the moment: <input name="ostype" type="radio" value="0" onchange="hider(solaris);">solaris <input

Android : Radio Buttons keep changing their state when List View Scrolled

送分小仙女□ 提交于 2019-12-08 12:05:05
问题 I have a listview with three Radio Buttons in a list item, Issue is that when I scroll list view, the radio buttons selected position gets changed. So please let me know how to keep radio button's selection intact even if I scroll list view. My code is, RadioGroupAdapter.java public RadioGroupAdapter(Context context, int layoutResourceId, Option[] data) { super(context, layoutResourceId, data); this.layoutResourceId = layoutResourceId; this.context = context; this.data = data; } @Override

Display Custom drawable and text in center of radio button

◇◆丶佛笑我妖孽 提交于 2019-12-08 05:47:51
问题 I am writing an application where I need to draw two radio button in equal horizontal space. That I achieved by set android:layout_weight="1" property for both of radio button. Now I need to display custom drawable button in centre and need to place text inside of that drawable, like this: Here behaviour of both draw drawable and text is dynamic. Is there any way to achieve both things in centre. 回答1: Give a try to the following code to achieve the desired output. <?xml version="1.0" encoding

Why a radiobuttonlist always take a new row?

冷暖自知 提交于 2019-12-06 18:29:37
问题 This is a question about layout. I'm developing a .net page, whenever I add a radiobuttonlist right after a label, it comes down to next row. But in the code side, it still within the same row. The problem is if you browse it in IE, it comes down to the next row. I am sure the width of both label and radiobuttonlist is not oversized. What's the reason and how to resolve this issue? Thanks in advance. 回答1: RadioButtonList by default renders as table. You can change set the property

How to add objects to a RadioButtonList based on random order ?

做~自己de王妃 提交于 2019-12-06 10:29:08
I am creating a radio button list in the back end of the system. Is there any method that let me display items with random order ? My Code : <asp:radiobuttonlist id="RadioButtonList1" runat="server" TextAlign="Right" CellPadding="10" RepeatLayout="Table" CausesValidation="True" CssClass="radioAnswers" ClientIDMode="Static"></asp:radiobuttonlist> c# RadioButtonList1.Items.Add(New ListItem(rsQuestion("a"), "A")) RadioButtonList1.Items.Add(New ListItem(rsQuestion("b"), "B")) RadioButtonList1.Items.Add(New ListItem(rsQuestion("c"), "C")) RadioButtonList1.Items.Add(New ListItem(rsQuestion("d"), "D"

Why a radiobuttonlist always take a new row?

你说的曾经没有我的故事 提交于 2019-12-04 23:48:02
This is a question about layout. I'm developing a .net page, whenever I add a radiobuttonlist right after a label, it comes down to next row. But in the code side, it still within the same row. The problem is if you browse it in IE, it comes down to the next row. I am sure the width of both label and radiobuttonlist is not oversized. What's the reason and how to resolve this issue? Thanks in advance. RadioButtonList by default renders as table. You can change set the property RepeatLayout="Flow" and it will be rendered in span. RepeatLayout Property Different ways it can render Add a property

display radiobuttonlist inline

喜你入骨 提交于 2019-12-03 05:36:42
问题 I've got a few radiolists on my page. The problem that I am facing is that the text of the radio buttons are not displayed inline of the radion button. I have put the repeatLayout to Table and Flow and neither is working. I have tried to add a style of display:inline; but that doesn't work either (though it did on the checkboxes and I thought that maybe it would work here too). This is just a normal radiolist: <asp:RadioButtonList ID="radRace" CssClass="radioButtonList" runat="server"

Yii CHtml::radioButtonList - CSS to align horizontally

亡梦爱人 提交于 2019-12-01 18:11:54
I am using yii framework for my development . I wrote CSS and able to align my <input tags in html properly and I am using the same CSS for yii and the alignment is messed up . Could some help me on this ? I wanted it to be displayed like below Here is the yii code I have <div id="gender"> <label>Gender :</label> <?php echo CHtml::radioButtonList('gender_code','',array('Male'=>'Male','Female'=>'Female'),array('separator'=>'')); ?> </div> CSS <style type="text/css"> div#gender { margin-top:20px; margin-left:200px; } div#gender label { font-weight: bold; font-size: 0.9em; float:left; margin-left