Filter Expression to CAML query

2 posts, 0 answers
  1. govind
    govind avatar
    12 posts
    Member since:
    Sep 2010

    Posted 14 Oct 2010 Link to this post


    I have a requirement in which i am using filter with rad gird to query on multiple Share-Point lists. My question is to how to get the CAML query generated from the Filter expression if it is at all possible. Any broad line idea will be appreciated.
    I know how to get the filter expression. so please don't direct me to that link.

  2. Tsvetoslav
    Tsvetoslav avatar
    1823 posts

    Posted 19 Oct 2010 Link to this post

    Hello govind,

    Thank you for contacting us and for your question.

    Parsing the filter expression is the difficult way to achieving this scenario. I'd suggest that you iterate through all the columns of the grid and inspect their CurrentValue and CurrentFilterFunction properties. From those you can get both the filter value and the filter operator and of course you have the column's DataField that gives you the title of the SPField to which it is bound. Having this information, you can employ it to construct your CAML queries.

    If further questions arise, do let us know.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top