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

Filter Expression to CAML query

1 Answer 82 Views
Filter
This is a migrated thread and some comments may be shown as answers.
govind
Top achievements
Rank 1
govind asked on 14 Oct 2010, 08:28 AM
Hi,

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.


Regards,
Govind.

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 19 Oct 2010, 07:47 PM
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,
Tsvetoslav
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
Tags
Filter
Asked by
govind
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or