Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
Trigger to change NoRowsInDataSource to NoVisibleRows?
posted

Hello,

I have an ultragrid used for search results bound to a binding source. When the search criteria are changed the rows in the underlying binding list are changed. The binding source sends a ListChangedType.Reset event to the grid. The user can also apply filtering within the grid. So, the rows shown in the grid depend on both the search criteria and any filters applied in the grid.

I have enabled both the NoRowsInDataSource message (search criteria returned no results) and the NoVisibleRows message (grid filtering out all rows). When the user changes the search criteria such that results are available but filtered out by grid filter, the grid is failing to update the state change from NoRowsInDataSource to NoVisibleRows. The ListChangedType.Reset event is sent to the grid. Inspecting the UIElements, the EmptyMessageRow.EmptyMessageType is still NoRows when it should be NoVisibleRows.

I've built various sand boxes for a binding source with filtering attached to a grid with filtering. The sandboxes always update the state and no rows message correctly.

Any suggestions on what to look for here?

Wendy

Parents
  • 469350
    Offline posted

    Hi Wendy,

    Let me see if I understand this correctly.

    Wendy Smith said:
    When the user changes the search criteria such that results are available but filtered out by grid filter, the grid is failing to update the state change from NoRowsInDataSource to NoVisibleRows.

    So it sounds like the grid is in a state where the data source actually has rows in it, but they are all filtered out and thus the grid is displaying the No Visible Rows message. At this point, the user makes a change which causes the data source itself to refresh and return no rows. And at this point, you are saying that grid still shows the  No Visible Rows message instead of the No Rows in DataSource message. Is that right?

    Does it work the other way? If there are no rows in the DataSource and then the user applies a filter to the grid (which essentially does nothing), does it correctly show the No Rows in DataSource message at that point?

    Also, what version of the controls are you using? Do you have the latest service release?

    How to get the latest service release - Infragistics Community

Reply Children