Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN RadButton Text Not ShowingDNN RadButton Text Not Showing
Previous
 
Next
New Post
6/19/2014 9:40 AM
 

I am trying to use the Telerik radbutton in a module I am creating for a site using version 7.02.02, but the control will not display with any text.

Here is my markup:
                    < tel:dnnRadButton ID="rb1" runat="server" Text="This Is A Test"
                         ButtonType="StandardButton" Value="Also A Test" >
                    < /tel:dnnRadButton >
                   

When the control gets rendered the html is:

< input type="submit" value="" id="dnn_ctr474_View_rb1_input" name="dnn$ctr474$View$rb1" class="rbDecorated" tabindex="-1" >

As you can see, even though I specified a Value in the markup, it is not being rendered with the html. I have tried the demos from the Telerik website, but they will not work for me to display the text either.

 Is anyone else noticing this issue? Am I doing something wrong?

 
New Post
6/19/2014 12:19 PM
Accepted Answer 

Hello,

This is sort of a guess - I haven't tried it yet. But, a lot of the DNN controls use localized stuff instead of direct text. So, I wouldn't be surprised if the "Text" property is actually setting a resource key for the local resource file for the control.

If you haven't dealt with that before, just put an App_LocalResources folder in the folder where your control is... then, add a resource file called (mycontrol).ascx.resx. Then, put an entry like "MyButton.Text" with the value of the text you want.

Mike

 
New Post
6/19/2014 2:47 PM
 

Mike,

Thank you, that worked!

Steps:

  1. In resource file for the .ascx control; added an entry for "Button.Text".
  2. Set the value of the Button.Text entry to "This is a test"
  3. Set the rad button markup as < tel:DnnRadButton Text="Button" runat="server" ID="testbtn" >< /tel:DnnRadButton >
  4. Button renders with the text "This is a test"

It would be nice if there were a way to override the use of the resource file, but having an answer to this question is enough for now.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN RadButton Text Not ShowingDNN RadButton Text Not Showing


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out