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

Show a new row when Filter condition is applied in Grid View

4 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Srini
Top achievements
Rank 1
Srini asked on 02 Nov 2010, 09:42 AM
We have to show a newly added row even when a filter condition is applied. How can we achieve this

4 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 02 Nov 2010, 10:29 AM
Hello Srini,

You have 2 options:

1. You could set RadGridView.ShowInsertRow property to true, that way you will add new item in a separate UI that do not care about the filter. (Recommended approach)

2. Another option is to handle RadGridView.AddingNewDataItem event and provide e.NewObject which passes current filter.

Kind regards,
Nedyalko Nikolov
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
0
Srini
Top achievements
Rank 1
answered on 02 Nov 2010, 12:01 PM
Hello Nikolov,

Thank you for your reply.

The user wants to see the new row even when a filter condition is applied, so i cant use the first approach.

Could you please provide a small sample for the second approach.
0
Licenses
Top achievements
Rank 1
answered on 09 Aug 2011, 01:06 PM
Hey,

We have the same problem for non-paged lists. In a paged list, after adding a new item we see the new item and the filters aren't reapplied until we save or refresh the list. Is there a way to get this behavior for non-paged lists?

Sodi We
0
Nedyalko Nikolov
Telerik team
answered on 12 Aug 2011, 11:39 AM
Hello Sodi We,

I'm not sure that I can understand your requirement. Generally filtering is applied before paging and I cannot reproduce such scenario when item is visible when it is committed and doesn't pass the filter (no matter if there is paging or not). Could you please provide me with a little bit more information about your scenario?
Thank you in advance.

Regards,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
GridView
Asked by
Srini
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Srini
Top achievements
Rank 1
Licenses
Top achievements
Rank 1
Share this question
or