The following post describes a way to asynchronously load distinct filter items:
http://blogs.telerik.com/vladimirenchev/posts/10-01-07/how-to-populate-radgridview-for-silverlight-distinct-filters-asynchronously-using-wcf-ria-services.aspx
I was able to get my code to work with this method (using a thread to retrieve the items from the DB and adding the result to the collection), but I wonder if there is any better/easier/cleaner way of doing it? The caveat with my current implementation is that I have to manually terminate the long-running thread whenever it becomes redundant (for example, when filter window closes, or when the whole grid is closed etc).
Any idea/recommendation is appreciated. Thanks in advance.
http://blogs.telerik.com/vladimirenchev/posts/10-01-07/how-to-populate-radgridview-for-silverlight-distinct-filters-asynchronously-using-wcf-ria-services.aspx
I was able to get my code to work with this method (using a thread to retrieve the items from the DB and adding the result to the collection), but I wonder if there is any better/easier/cleaner way of doing it? The caveat with my current implementation is that I have to manually terminate the long-running thread whenever it becomes redundant (for example, when filter window closes, or when the whole grid is closed etc).
Any idea/recommendation is appreciated. Thanks in advance.