Telerik Forums
UI for Silverlight Forum
10 answers
113 views
Hi

Can you tell me the correct format to call the built-in functions in Expression Editor.
e.g. Average( 1.5, 2.5, 3.3 ) does not work. What is the correct format?

Thanks
Brian

Dilyan Traykov
Telerik team
 answered on 31 Aug 2017
5 answers
47 views

For example:

Item is string "abcd", lambda is Item.Any(param=>param == 'd'), how to write the expression string?

 

 

Stefan Nenchev
Telerik team
 answered on 01 Aug 2016
0 answers
34 views

We use the expression editor extensively and love it.

It works great for almost all of our numeric columns. (Int32, Int64, double, datetime) however, for Nullable Decimal types, we can not use Functions.

I can do columnName * columnName and the Result Preview works, and the Expression is valid.

however, if I do Sqrt(columnName) or any other function the Result Preview is blank, and the Expression property is null?

 

Any suggestions?

Casey
Top achievements
Rank 1
 asked on 10 Jul 2015
15 answers
348 views
I have a blocking issue related to Expression persistance. If taking the very simple scenario - the user enteres expression text and it is applied against some objects or collections. Also the expression is saved somewhere and should be restored and applied during next sessions. So there's a need to turn a textual expression into the runtime Linq equivalent.

The problem is that it is impossible to turn Expression Text into expression on the fly. If I create a new instance of RadExpressionEditor, assign its "Item" and "ExpressionText" the "Expression" property value always equals to "null" (besides that syntax coloring is not working for predefined expressions until user types somethiing).

It seems that ExpressionEditor heavily relies on UI rather than underlying model as most of the expression parsing logic is being triggered by UI controls. I've performed a very quick glance with .NET Reflector and found that expression parsing is being triggered by Timer in control implementation so breaking any sequential tries to get the parsed result in code behind.

I would welcome any hack, workaround or dirty trick to make this working as it blocks the entire feature development we have purchased the Q1 2011 upgrade for.

Thanks in advance,
Denis
Dimitrina
Telerik team
 answered on 01 May 2015
10 answers
78 views
Is there any chance to make the expression editor work with a class that it's properties are stored in a dictionary accessible through indexed properties?
Dimitrina
Telerik team
 answered on 05 Jun 2014
2 answers
63 views
How I can get the result evaluated in the control? 

I am using the DataTables that explained in his blog
Nick
Telerik team
 answered on 21 Mar 2014
1 answer
33 views
hi.. i could create my own Function with params... f.i.  MYFUNCTION(XXXX,YYYY,ZZZZ) and validate thk
Rossen Hristov
Telerik team
 answered on 27 Jun 2013
1 answer
45 views
how i can create a custom funcion like MYFUNCION(XXXX,YYY,ZZZ) and validate a int output.. :D and put him on the funcions tree thk...
Rossen Hristov
Telerik team
 answered on 27 Jun 2013
1 answer
21 views
how i can avid the wrong chars like +,-,*,/,% and another no valid chars..  or wich are the list of the wrong chars.
because i use f.i. :  percentaje(%) in the field name and dont work, the same when  % percentaje or per(m)  how i can solve that with the editor
Dimitrina
Telerik team
 answered on 20 Jun 2013
7 answers
109 views
Hi,

I'm trying to use ExpressionEditor (Silverlight) to build in my application a screen that allows users to define Where clauses to be used in the database.
For that, the list of Fields available in the ExpressionEditor control should have the list of database columns that can be used in the Where clause. Because this list can change (for example, based on the table being used), the ideal solution for me is to send those columns from the database. Is it possible to change, at runtime, the Fields that can be used in ExpressionEditor?

Thanks,
Rossen Hristov
Telerik team
 answered on 11 Jun 2013
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?