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

Filter on grid calculated column

2 Answers 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nandita Kotha
Top achievements
Rank 1
Nandita Kotha asked on 23 Sep 2009, 04:53 PM
Hi,

I have a rad grid which has a calculated column.

<

 

telerik:GridCalculatedColumn HeaderText="User's Name" UniqueName="UsersName" DataType="System.String"

 

 

DataFields="FirstName, LastName" Expression='{0} + "&nbsp;" + {1}' AllowFiltering="true"/>

If an user's name is Peter James and I filter the grid by first name or last name it works fine.If I filter for the full name Peter James,there are no records displayed in the grid.

Could you please let me know how I can filter the grid by full names( FirstName LastName).

Thanks,
Nandita.

 

2 Answers, 1 is accepted

Sort by
0
Mr. Plinko
Top achievements
Rank 1
answered on 23 Sep 2009, 05:01 PM
What happens if you replace Expression='{0} + "&nbsp;" + {1}' with Expression='{0} + " " + {1}'

perhaps the HTML rendering is throwing things off.
0
Nandita Kotha
Top achievements
Rank 1
answered on 23 Sep 2009, 05:56 PM
Yes..that worked.

Thanks a lot,
Nandita.
Tags
Grid
Asked by
Nandita Kotha
Top achievements
Rank 1
Answers by
Mr. Plinko
Top achievements
Rank 1
Nandita Kotha
Top achievements
Rank 1
Share this question
or