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

How to access instance self?

5 Answers 49 Views
ExpressionEditor
This is a migrated thread and some comments may be shown as answers.
W
Top achievements
Rank 1
W asked on 18 Jul 2016, 03:55 AM

For example:

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

 

 

5 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 20 Jul 2016, 11:34 AM
Hello,

If you want to modify the expression string of RadExpressionEditor, you can use its ExpressionText property. You can find more detailed information on the matter in RadExpressionEditor article. You can also take a look at our online demo where you can see how to use it.

I hope this helps.

Regards,
Martin Vatev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
W
Top achievements
Rank 1
answered on 22 Jul 2016, 01:48 AM

I had readed the article, but there no way to access instance self, like the example above.

0
Martin
Telerik team
answered on 26 Jul 2016, 08:28 AM
Hello,

I would like to ask you to provide us with more detailed information on the exact requirement, so that we can understand what you have in mind and be more effective in providing assistance. 

Thank you in advance for your cooperation.

Regards,
Martin Vatev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
W
Top achievements
Rank 1
answered on 28 Jul 2016, 02:47 AM
If RadExpressionEditor.Item = "abcd",how write the expressionText(RadExpressionEditorExtensions.TryParse's param) to get the Expression like "Item.Any(param=>param == 'd')" by RadExpressionEditorExtensions.TryParse.
0
Stefan Nenchev
Telerik team
answered on 01 Aug 2016, 02:55 PM
Hello,

Generally, the ExpressionEditor is designed to work in a scenario where the item is a complex type and would not work in the specific requirement you have to filter a List of strings. Can you confirm if this is the setup at your end? Can you please provide more information on the functionality you aim for so we can suggest a workaround? Are you using the ExpressionEditor in a combination with RadGridView? 

The best case scenario would be to raise a ticket and provide a sample project which we can familiarize with and advise you more accurately.

Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ExpressionEditor
Asked by
W
Top achievements
Rank 1
Answers by
Martin
Telerik team
W
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or