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

Gridview iqueryable add, edit, delete

2 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stavros
Top achievements
Rank 1
Stavros asked on 01 Oct 2016, 02:46 AM

Hello to all,

Recently i noticed that when the gridview is binded with observablecollection, events like add, edit or delete can fired when user press keys on the keyboard or sent gridview commands, this not seems to be happening when gridview is binded with iqueryable.

So is there any way to simulate the observablecollection class behavior to iquerable and implement the add, edit, delele functions without creating my own separate functions and call them on keypress?

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 05 Oct 2016, 02:05 PM
Hello Stavros,

A possible approach for such requirement would be to use the CollectionChanged event of the Items collection of RadGridView. Its event arguments provide the Action property, by which you determine in what manner the collection has been modified. Would such approach work for you?

Regards,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Stavros
Top achievements
Rank 1
answered on 06 Oct 2016, 09:35 PM
I was thinking something more like observablecollection but with database plus iqueryable advantages as query do not execute in memory. But your awnser makes this to work, also a good idea is to use events like oneditended
Tags
GridView
Asked by
Stavros
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Stavros
Top achievements
Rank 1
Share this question
or