DataFormRadioGroupEditor change RadioButton theme

Thread is closed for posting
3 posts, 0 answers
  1. Sal
    Sal avatar
    58 posts
    Member since:
    Feb 2015

    Posted 26 May 2016 Link to this post

    I'm using the RadDataForm to present a few settings and one of the settings is a RadioGroup. I can setup the editor easily using DataFormRadioGroupEditor, and I can even update the text colors used by using setEditorCustomizations but the only thing I can't  seem to find is how to update the RadioButtons so they use the defined style in my Theme and not the built in style (which looks to be a pre-Lollipop style of button anyways). Here's a screen shot of how the DataForm shows up on my device and my Theme Editor showing how the RadioButtons should looks based on my Theme. I've been trying to dig around and find a way to update the Radio Buttons but so far I can't seem to figure it out. 
  2. Todor
    Todor avatar
    798 posts

    Posted 27 May 2016 Link to this post

    Hello Sal,

    Thank you for your question.

    I can't reproduce the described issue. I tried to the change the accent color with the theme editor and it was applied successfully to the radio buttons inside the DataForm as you can see from the attached screenshot.

    One reason for such difference that you observe could be that the Android version selected in your Theme editor is different from the one of your device/emulator.

    If the issue persists, please give us more information about the observed occurrence of the issue (including device model, api version, etc. anything that can help) and/or send us a sample project that we can use to reproduce it.

    Thank you for your cooperation.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Sal
    Sal avatar
    58 posts
    Member since:
    Feb 2015

    Posted 27 May 2016 in reply to Todor Link to this post

    Thanks Todor for the reply. I actually found what was causing the issue. I was originally just adding the RadDataForm to the xml layout for my DialogFragment and that's why it wasn't using the correct theme. Once I removed it from the layout and created the form in OnCreateView the DataForm properties are all using the right theme. 
Back to Top