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

[Solved] Filtering not working with custom paging with radgridView

1 Answer 108 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.
LaLo
Top achievements
Rank 1
LaLo asked on 17 Jun 2011, 08:11 AM
Hi
well am trying to perform filtering with custom paging ....I have a RadGridView with a custom paging control ..The problem occuring is that when i chose a filter criteria using the built in filtering mechanism and navigate to another page using the custom pager the paginf doesnt work properlt neither does the filtering when i return to th eprevious page i cant Clear the Filter ....

I tried to use behaviours in order to populate the Custom Paging Control and the RadGridView with the Filtered DataSource ...But the problem is that the grid is rendered Dynamically so the Behaviour is not working well

I tried this

 

 

foreach (var item in ViewInfoList)

 

{

dtGrid.Columns.Add(

 

new DataColumn() { ColumnName = item.ColumnName, DataType = MapColumnTypes(item.DataType.ToLowerInvariant()) });

 

 

 

GridViewDataColumn col = new GridViewDataColumn();

 

col.Header = item.ColumnName;

 

 

if (item.ColumnName == "RowIndex" || item.ColumnName == PrimaryKeyName)

 

{

col.IsVisible =

 

false;

 

}

 

 

BehaviorCollection Behaviors = Interaction.GetBehaviors(col);

 

Behaviors.Add(

 

new CustomFilter());

 

col.SetValue(

 

Interaction.BehaviorsProperty, Behaviors);

 

gCols.Add(col);

}



But The event is not getting fired ...Here i eas just trying to close the Filtering pop up when am trying to Filter ....Any Ideas

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 23 Jun 2011, 09:20 AM
Hello LaLo,

Could you please state more explicitly what the problems. You have mentioned several problems and it is a bit unclear where we should focus. 

Also, will it be possible to provide a sample application which will help us a lot when trying to resolve the problem. 

All the best,
Milan
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
GridView
Asked by
LaLo
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or