How to access instance self?

6 posts, 0 answers
  1. W
    W avatar
    14 posts
    Member since:
    Apr 2016

    Posted 17 Jul Link to this post

    For example:

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

     

     

  2. Martin Vatev
    Admin
    Martin Vatev avatar
    87 posts

    Posted 20 Jul Link to this post

    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.
  3. DevCraft banner
  4. W
    W avatar
    14 posts
    Member since:
    Apr 2016

    Posted 21 Jul Link to this post

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

  5. Martin Vatev
    Admin
    Martin Vatev avatar
    87 posts

    Posted 26 Jul Link to this post

    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.
  6. W
    W avatar
    14 posts
    Member since:
    Apr 2016

    Posted 27 Jul Link to this post

    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.
  7. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    277 posts

    Posted 01 Aug Link to this post

    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.
Back to Top
DevCraft banner