Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
58 views

Validator text shows as required, however the message on the validator doesn't show in the asp:ValidationSummary control.

 

RBarnes
Top achievements
Rank 1
 asked on 08 Nov 2023
1 answer
34 views

Hi,

I would like to be able to change the RadioButtonList border color depending on certain conditions from JS.

Here I am looping through all the Rad radio controls and on certain conditions I would like to change the border style for the RadioButtonList.


  var allRadControls = $telerik.radControls;
            var Found = false;       
            for (var i = 0; i < allRadControls.length; i++) {
                var element = allRadControls[i];
                //text Radio
                if (Telerik.Web.UI.RadRadioButtonList && Telerik.Web.UI.RadRadioButtonList.isInstanceOfType(element)) {
                    var items = element.get_items();
                    var x = element.get_element().parentElement;
                  
                  //  alert(pageview.findControl(element).get_id());

                    if (element.get_toolTip() == 'y' &&
                        x.id == pageview.get_id() &&
                        element.get_selectedIndex() <= 0) {
                        element.style.color = 'white';
                        
                        return 'y'
                    }
                    else {
                        Found= 'n'
                    }
                 
                }
            }
            return Found;

I appreciate the help.

Thanks,.

Omar

 

 

 

Vasko
Telerik team
 answered on 01 Nov 2023
1 answer
49 views

Hi,

I want to attach the client event to a dynamically created radio list.

Below is an example of a dynamically created radio list.

The question is, How to attach the JS function to OnSelectedIndexChanged, to display the selected radio value?

Many thanks in advance.

Omar

 

                RadRadioButtonList RBL = new RadRadioButtonList();
                RBL.ID = "Radio" + i.ToString();
                RBL.AutoPostBack = false;

                ButtonListItem answer1 = new ButtonListItem();
                answer1.Text = "Answer " + i.ToString();
                answer1.Value = i.ToString();
                RBL.Items.Add(answer1);

                ButtonListItem answer2 = new ButtonListItem();
                answer2.Text = "Answer " + i.ToString();
                answer2.Value = i.ToString();
                RBL.Items.Add(answer2);

                ButtonListItem answer3 = new ButtonListItem();
                answer3.Text = "Answer " + i.ToString();
                answer3.Value = i.ToString();
                RBL.Items.Add(answer3);

                RBL.ClientEvents.OnSelectedIndexChanged = "OnItemClicked";

Vasko
Telerik team
 answered on 26 Oct 2023
1 answer
72 views

Hi,

How to change the size of the radio button icon. 

 

When I change the size of the font for the radio button the text size increase but not the icon.

 

Note: its not the radio button list, its the radio button control

 

Many thanks,

Omar

Valentin Dragnev
Telerik team
 answered on 13 Dec 2022
1 answer
51 views

Hello, I'm using a simple RadRadioButtonList.

The background image for the buttons is off-center, and looks really bad:

Using the browser devtools, disabling the background image removes the off-center black circle.

I haven't figured out how to disable it otherwise, or how to fix it.  I don't desire to have any skin whatsoever, but I haven't figured out to do that either.  Skin="" doesn't seem to do anything on the control.

If I have to create a custom skin, I'll throw in the towel and use the built in asp.net controls.

Advise?

Thanks.

Rumen
Telerik team
 answered on 12 Jun 2022
1 answer
163 views

When I use the Rad radio button and checkboxes... something is messing up the alignments.  I have reviewed my css, in page style changes and inspected the page in chrome and edge and I cannot find what is causing this (looks like all the applied styles are coming from Telerik.Web.

Any thoughts on where to fix this?

Peter Milchev
Telerik team
 answered on 04 Apr 2022
0 answers
75 views

Hi,

My web applications have no permission to install telirik asp.net components (RadButton) during runtime in vmware/RDSH environment? how can i solve this problem? thx.

Henry
Top achievements
Rank 1
 asked on 16 Jul 2021
1 answer
63 views

there is a way to add an item by javascript, like this

radiobuttonlist.get_items().add( new Telerik.Web.UI.ButtonListItem())

 

Vessy
Telerik team
 answered on 15 Apr 2021
10 answers
575 views

Hi,

I am increasing the font size for RadRadioButtonList, but the radio circle remain small. see attached image.

Is there a way to increase the size of the radio button?

Regards,

Omar

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 19 Mar 2021
3 answers
506 views

Radiobuttonlist selectedIndexChange event does not fire when nested inside of  a RadSplitter/RadPane

<telerik:RadSplitter
     runat="server"
     ID = "radSplitter1"
     ResizeWithBrowserWindow="true"
     Orientation="Vertical"
     ResizeMode="Proportional">

     <telerik:RadPane
          runat="server"
          ID=radPane1>
                <telerik:RadioButtonList
                     runat="server"
                     ID="radioButtonList1"
                     Direction="Vertical"
                     AutoPostBack="true"
                     OnSelectedIndexChange="RadioButtonList1_SelectedIndexChanged">

                     <Databindings
                           DataTextField="Name"
                           DataValueFields="Value"
                           DataSelectedField="Selected"/>

          </telerik:RadioButtonList>

     </telerik: RadPane>
</telerik:RadSplitter>

When I move the RadioButtonList to the outside of the RadSplitter then the RadioButtonList1_SelectedIndexChanged fires.  I'm using Telerik Version 2017.1.228.445


    

     

Vessy
Telerik team
 answered on 13 Nov 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?