Setting default values for filters

Nov 30, 2008 at 11:20 PM
Hi, the filters are working excellently (thank you!) - but I was just wondering if it was possible to set default values for the filters that are applied the first time a page loads?

Oct 9, 2009 at 5:28 AM

I have the same requirement. It seems like it should be an easy task, but I can't figure it out. Does anyone have any suggestions?

Oct 9, 2009 at 12:02 PM

Hi.  The problem is that this logic would have to be different for each page.  A list page with search for products might default the Discontinued boolean value to false, while the default for IsInStock would be true.  I believe the correct place to accomplish this would be in the MetaModel.  Addding a default search value to the FilterAttribute is a good suggestion.