World is now on Opti ID! Learn more

EPiServer.Labs.GridView Search

Vote:
 

We are using the EPiServer.Labs.GridView package. Most of it is working fine, but we do have some issue with the search.
We created a redirects gridview option so serve our needs. We can add and delete the items and that works as expected.

We have 2 issues/questions

1)
When we use the search in the gridview only some items will appear and some won't appear while I know that they are present.
We have about 5000 items in the gridview and that might me an issue. 
Is there something we can do about this?

2)
it there an option to extend or change the search functionality? We now only seem to be able to search on the name, but I also want't to search by FromUrl and ToUrl.
is that possible?


#338130
May 13, 2025 11:45
Vote:
 

This is probably by design. As far as I know the GridView use the IContentRepository with the GetDescendents method that itself is limited to 5000 docs. 

I believe you should be able to extend the GridView to use Search & Navigation instead, or even the good old internal Criteria api that will not have the limits of the more modern API:s.

#338132
May 13, 2025 13:47
Vote:
 

We don't have the Search & Navigation installed, but I do have some internal function That could be used for this search.

How would I extend the gridview search?

 

#338199
May 16, 2025 15:25
Vote:
 

I am also having troubles with sorting.

for example I have this setup:
  GridSettings = new GridSettings
  {
      Columns = new ColumnsListBuilder()
          .WithColumn("Intro Title", displayName:"Title", propertyName: "ArticleIntroTitle", sortable:true)
          .WithContentName()
          .WithPublishDate()
          .WithContentStatus()
          .WithCreatedBy()
          .WithEdit()
          .WithActionMenu()
          .Build()
  };

The colums are showing and the sort icon/arrow is also showing, but nothing happens when I press it except for the icon facing the opposite direction. 

I have no idea why it is not working.

#339498
Jun 20, 2025 15:21
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.