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

[Solved] Search by Type

7 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rick Mueller
Top achievements
Rank 1
Rick Mueller asked on 10 Dec 2010, 07:19 PM
Hello,

Following your Demo, I was able to get it to work, Then I put the Grid into its own view.
It doesn't see (this.CustomFilterDescriptor.FilterValue).

This is the set-up, trying to follow MVVM much as I can.
I have the grid on a page that populates in a frame in the mainwindow. I have the CustomFilterDescriptor.cs in the Model folder.

The Grid is in its own view in the View Folder and its populate by WCF service.

using RadControlsSilverlightApp7.MyService;
using System;
using System.IO;
using System.IO.IsolatedStorage;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows.Input;
using Telerik.Windows.Controls;
using RadControlsSilverlightApp7.Model;
using System.Linq;
using Telerik.Windows.Data;
This is my usages in the code behind for my gridview.
It errors telling me need a missing reference?

What I'm missing?

Thanks Rick


7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Dec 2010, 07:59 AM
Hello Rick,

 Can you post the error? 

Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Rick Mueller
Top achievements
Rank 1
answered on 13 Dec 2010, 04:30 PM
Hello,
The error is on:
this.CustomFilterDescriptor.FilterValue = this.textBoxFilterValue.Text;

Error:

RadControlsSilverlightApp7.EmployeeView does not contain a definition for "CustomFilterDescriptor" and no no extension method.
CustomFilterDesscriptor accepting a first Argument of type  RadControlsSilverlightApp7.EmployeeView could not be fould(are you missing a using directive or an assembly reference..
Thoughts?

Rick
0
Vlad
Telerik team
answered on 15 Dec 2010, 02:46 PM
Hi ,

 Can you verify once again if this class (CustomFilterDescriptor.cs) is added in your project and you have the necessary using declaration? 

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Rick Mueller
Top achievements
Rank 1
answered on 15 Dec 2010, 03:49 PM
Hello,
I figure out the declarations,,But Its really sticky and don't filter.  Acouple hurdles,

1. I have the grid populated by WCF,,It shouldn't matter
2. After the grids loaded I fire a event to select the first row.

So when I type in the searchbox the data_loaded event fires, So I know I'm able to reach the grid, but again it doesn't filter.
it just selects the first row.

Note: It was like this before I added the data_loaded event.

Thoughts
Rick
0
Vlad
Telerik team
answered on 20 Dec 2010, 09:29 AM
Hello,

 What kind of collection you are using to bind the grid in your case? Can you verify if the standard grid filtering will work normally? 

Best wishes,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Rick Mueller
Top achievements
Rank 1
answered on 20 Dec 2010, 04:38 PM
VLAD,
The standard grid filtering works great. The binding is basic WCF, I do have a images in a column and I have a couple columns hidden.

But that shouldn't make difference.

Rick
0
Vlad
Telerik team
answered on 20 Dec 2010, 04:40 PM
Hi,

 Can you send us this project to check it locally what is going on? 

Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Rick Mueller
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Rick Mueller
Top achievements
Rank 1
Share this question
or