Gridview iqueryable add, edit, delete

3 posts, 1 answers
  1. Stavros
    Stavros avatar
    4 posts
    Member since:
    Jun 2014

    Posted 30 Sep 2016 Link to this post

    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. Answer
    Stefan avatar
    1073 posts

    Posted 05 Oct 2016 Link to this post

    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?

    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.
  3. Stavros
    Stavros avatar
    4 posts
    Member since:
    Jun 2014

    Posted 06 Oct 2016 in reply to Stefan Link to this post

    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
Back to Top