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

Filter multi lines

2 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ahmad
Top achievements
Rank 1
Ahmad asked on 28 Dec 2017, 08:08 AM

when I copy multi lines and paste into column filtering textbox, 
grid just filter the first line and omit the other lines.

for example, I wanna filter the following lines:

"Ali
Vahid"

grid just filter Ali.

there is any way to filter multi lines?
Thanks.

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 02 Jan 2018, 07:54 AM
Hello Ahmed,

Thank you for contacting us.

We are currently investigating your scenario. We will contact you again as soon as we have more information about your case.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Dinko | Tech Support Engineer
Telerik team
answered on 02 Jan 2018, 01:43 PM
Hello Ahmad,

Thank you for your patience.

This behavior is expected. You can observe the same behavior if you just create TextBox and try to paste it multiline text.

To make TextBox able to accept multiline text you can set the following properties.
<TextBox TextWrapping="Wrap"
         VerticalScrollBarVisibility="Visible"
         AcceptsReturn="True"/>

In order to apply this to the FilteringControl of the RadGridView, you can extract and edit the default template of the FilteringControl. There is an Editing Control Templates help article in our documentation which describes how you can extract the default template of the control. In the extracted template you can navigate to a ContentControl with x:Name="PART_Filter1ContentControl" and inside its resources you can create custom style targeting TextBox and set the above properties. 

For your convenience, I have created sample project which demonstrates this approach. You can find the project attached to this reply.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Ahmad
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or