Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Adam Downs on Mar 12, 2009 10:58
open dhtmlx forum
Expected Behavior?

I asked the previous question

 

I have a very Bad bug in the PRO Grid 2.0... I have a grid with 35 columns and I use the header filters with the dataprocessor. The Bug is as follows

If a user filters the data from a header column then updates a row the data is sent to the server saved in the database and the row goes from bold to normal and show as you would expect. The data in the database is also correct just as one would expect however... If the user then changes the filter and refilters to get the data again the changes are not reflected to the user. If the data is pulled from the database again it is reflected. SO... It appears that the filters are applied to the orginal dataset each time and changes are lost to the user as they refilter...

My application requires users to constantly change the filters and update the data. I need the users to be able to see the changes as they alter they data and filters. How do I solve this.

And recieved the following

>>It appears that the filters are applied to the orginal dataset each time
This is expected behavior. 
When filtering started , grid lock original state, and revert to it when filter cleared. As result any changes applied to dataset ( adding | deleting  rows ), while grid was in filtered state, will not be visible after re-filtering. 

While behavior can't be changed, there is workaround - grid can be unfiltered, row added and grid re-filtered again ( all this can be done by API calls ) , in such case row will be added in unfiltered state, so it will be correctly added.
http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=3752&ssr=yes&s=delete%20filter

 

However I am not added or removing rows simply Changing Row values... is it possible to change the values and have those changes reflected to the user when the filters are changed?

 

on a side note is there a way I can reply to an answer without having to reask the who question again?

Answer posted by Support on Mar 12, 2009 11:09
Possible fix sent by email. 
Answer posted by Stephan on Jun 30, 2009 08:11
We have exactly the same problem, could you please provide the (possible) fix? Thank you.
Answer posted by dhxSupport on Jun 30, 2009 09:05
Please contact support@dhtmlx.com and provide your ref. ID ans we will send you fixed file. 
Answer posted by Stephan on Jun 30, 2009 09:08
E-Mail with ref-ID (xxxxx1835) already sent. Please send the file as soon as possible, thank you.