This is a migrated thread and some comments may be shown as answers.

RadFilter - Expression Preview

2 Answers 63 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Allan asked on 15 Feb 2013, 09:34 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Antonio Stoilkov
Telerik team
answered on 20 Feb 2013, 07:10 AM
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.
0
Allan
Top achievements
Rank 1
answered on 20 Feb 2013, 04:30 PM
Excellent, thanks Antonio!
Tags
Filter
Asked by
Allan
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Allan
Top achievements
Rank 1
Share this question
or