More in this section

Forums / Developing with Sitefinity / Use Message control client side?

Use Message control client side?

2 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    2 posts
    09 May 2013
    29 May 2015
    Link to this post

    We've created a comprehensive CRM app using the SF framework.  Within the app, we've been using the Telerik.Sitefinity.Web.UI.Message control to provide validation type messages.

    Recently, we've created a user control where the data entry validation is completely client side (no postback or server side validation).  We want to use the same Message control but need to set the message client side using javascript or jquery.  Is this possible and if so is there any client side api available or will we have to inject the message ourselves to get the same behavior?

    Thanks in advance...Jeremy Bayless Grimco

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    03 Jun 2015
    Link to this post
    Hi Jeremy,

    The Message control has a MessageText property which gets or sets the message text of the control: 

        RemoveAfter="10000" >

    What I can suggest is that you use javascript to get the control and set its property to the desired value.

    Sabrie Nedzhip
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered