RadFilter - Expression Preview

3 posts, 1 answers
  1. Allan
    Allan avatar
    9 posts
    Member since:
    Feb 2013

    Posted 15 Feb 2013 Link to this post

    Hi,

    I've changed the localization for a few of the operators ('IsNull' to 'Is Absent' etc) - is there any way to then display these in the Expression Preview?

    If possible, an example would be much appreciated.

    Thanks
  2. Answer
    Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 20 Feb 2013 Link to this post

    Hi Allan,

    The desired functionality could be achieved on the client. The idea is to replace "Is Null" to "Is Absent" in the preview element innerHTML.
    function pageLoad()
    {
        var preview = $telerik.getElementByClassName($get("<%= RadFilter1.ClientID %>"), "rfPreview");
        preview.innerHTML = preview.innerHTML.replace(/Is Null/g, "Is Absent");
    }


    Greetings,
    Antonio Stoilkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Allan
    Allan avatar
    9 posts
    Member since:
    Feb 2013

    Posted 20 Feb 2013 Link to this post

    Excellent, thanks Antonio!
Back to Top