Skip to content

Commit d8020da

Browse files
committed
Add initial indexing support.
1 parent 82db891 commit d8020da

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

ODataDataProvider/ODataVirtualDataSourceDataProvider.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,22 @@ public bool AreSortingAndFilteringExternal
370370
}
371371
}
372372

373+
public bool IsItemIndexLookupSupported
374+
{
375+
get
376+
{
377+
return false;
378+
}
379+
}
380+
381+
public bool IsKeyIndexLookupSupported
382+
{
383+
get
384+
{
385+
return false;
386+
}
387+
}
388+
373389
public void NotifySetItem(int index, object oldItem, object newItem)
374390
{
375391
if (UpdateNotifier != null)
@@ -456,6 +472,16 @@ public void Refresh()
456472
{
457473
RefreshInternal();
458474
}
475+
476+
public int IndexOfItem(object item)
477+
{
478+
return -1;
479+
}
480+
481+
public int IndexOfKey(object[] key)
482+
{
483+
return -1;
484+
}
459485
}
460486

461487

0 commit comments

Comments
 (0)