Hi,
It seems these type of filters have refresh problem for us. I am setting for example Top 10 filter on ID column (integer). When new row rets in my grid shows that new one and keep ALL "old" rows. So my grid contains 11 rows. Adding more rows keep showing more rows in the grid. If i reset filter (show all and then set top 10 again) the grid shows correct data. ID is identity column so it gets new incremental value for every new row.
Is there anything special I have to do with the grid (programmatically refresh ?) when it has these sort of filters?
Thanks
Michael
ITG
HI Michael,
This has been fixed in the latest service release, which can be downloaded from the My Keys and Downloads page. Sincerely, Matt Developer Support Engineer
I noted the filtering issue but could not reproduce the sorting issue.
I will bring the filtering issue to the attention of the developers.
Sincerely, Matt Developer Support Engineer
I apologize, have no idea why it added some much empty space there.
Thank you for your reply.
You cannot reproduce the problem because your new data does not show up right away when you add it. Here is how to reproduce.
Add this code to your Person class
static int NewID()
{
return ++newID;
}
private int id = 0;
public int ID
get { return id == 0 ? (id = NewID()) : id; }
set { id = value; }
it will generate new id for every row you add to the grid.
now open app and sort by ID desc, so you will have last added rows on top.
set Top 10 filter on ID column. you will see 10 rows out of 11 you generate in grid at startup (ids from 2 to 11).
hit add row button several times. you will see rows are coming into your grid in the bottom right away. so if you click ADD button once you will see row with id = 12.
we have 2 issues here:
1. grid does not sort rows correctly. rows with bigger id suppose to be on top.
2. grid does not apply Top 10 filter right away. all new rows appreas in the grid and previous 10 rows are also there.
HI,
I was not able to reproduce your issue. I am attaching a sample application.
Select top 10 filter for Salary. Only 10 rows appear,. Click the Add button, which will add a new row.
This row should not appear and doest, Clear the filter and you will see 10 rows.
I am using the lastest build 10.3.2164