4 Answers, 1 is accepted
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
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.
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
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.
Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>