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

How to get the Radfilter input value

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Y
Top achievements
Rank 1
Y asked on 17 May 2012, 06:58 AM
 

RadFilterSqlQueryProvider provider = new RadFilterSqlQueryProvider();
            provider.ProcessGroup(RadFilter1.RootGroupItem.Expression);

            string searchStr = provider.Result;
I can get the where values.But my some filed is nvarchar type.So must add 'N' before the where value.
e.g. : N'unicode values'.
How to do it? Please help.

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 21 May 2012, 11:16 AM
Hi,

You could achieve your scenario by accessing the RadFilterSqlQueryProvider Result property value and manipulate it. You could loop through the string and check every field that need to be added an N before the value.

Regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Y
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or