+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Explanation of advanced properties for controls?

Explanation of advanced properties for controls?

2 posts, 0 answered
  1. Kevin
    Kevin avatar
    16 posts
    Registered:
    09 Feb 2012
    15 Apr 2013
    Link to this post
    Hi,

    Can someone point me to a list of the various advanced properties for each type of control? I know a lot of them come from standard .NET controls, but many seemingly do not.

    My current problem: All I'm trying to do is style the validator error messages for a form textbox. It seems like this should be a simple issue, but I'm pulling my hair out.

    In the advanced properties for my textbox control, I see the following possibilities:
         ControlCssClassOnError
         ErrorMessageControl -> CssClass (if this is it, does "Enabled" also need to be set to "true"?)
         ValidatorDefinition -> MessageCssClass

    I've tried setting all three to the class name I've got defined in my CSS, but to no avail.

    The Sitefinity documentation only mentions the following:

    "For more information about what each property means and what to enter in the input fields, see CompositeControl Properties on Microsoft Developer Network."

    ... which is all well and good, but I can find none of these properties at that link.

    Anyone with ideas?
    Thanks,
    Kevin
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    17 Apr 2013
    Link to this post
    Hi Kevin,

     Thank you for using our services.

    There's actually a css class, which is set to the error input, where the validation message appears. However, there are cases where you'd like to add something more specific to make the styling experience better. I have recorded a demonstrative video, where I add some additional html to the validation message and one custom class, which will be used to style the message. Then I add browser specific css for internet explorer in a css widget on the page, where I have the form. This way I'm able to style the message for IE. Please take a look at the video for further reference:

    http://screencast.com/t/gouDSjZ92e

    Hope this helps!

    Regards,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered