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
85
Addrow in XamGrid while the filter is on
posted

Weird problem that looks straight forward but not sure what am I missing -

I am using a xamGrid bound to observable collection. The collection has data rows which I can see in the grid. Now I apply the Grid filter (by clicking on the icon on grid column) and eliminate few rows. Everything works fine till this point.

Now I have a button and on it click I am adding new row to the grid. However the moment I click on the button a row gets added to the underlying collection however since it does not "qualify" for current filter it never shows up on grid. Is this the limitation of the grid or am I missing something.

The worst thing is I have cell validation which appears on screen top + LEFT instead on the cell as the row itself is not been seen on grid.

Parents
  • 34510
    Offline posted

    Hi shaileng,

    Not really sure I understand exactly what the issue is here.  If there is a filter applied to the XamGrid and a row is added that does not match this filter, I would expect that the row would not be visible.  It doesn't match the filter.  Keeping the newly added row in view regardless of whether it matches the filter or not is currently not supported.  As soon as the row is added, the filter is evaluated again and the row is kept/removed based on the result.

    If you would like for the row to remain visible after it has been added, this would require a filtering system that did not re-evaluate everytime the data has updated.  For this I recommend that you suggest a new product idea at http://ideas.infragistics.com.  If you create a new idea for this, please include a link to this thread so product management will be able to look back at this case.

    As for your cell validation, how exactly have you implemented this?  Are you using the built in support for IDataErrorInfo and the validation error is appearing in the wrong spot?  Or is this some kind of custom implementation?

Reply Children