Answered Reset status of LS Advanced Filter Builder Control by code

  • Monday, July 09, 2012 5:01 PM
     
     

    Dear all,

    Does anyone know how to reset the LS Advanced Filter Builder Control to its original state (one empty clause shown) by code, e.g. when pressing a "Reset filter" custom button? I already searched within the source code but unfortunately did not find any suiting methods.

    Further I would like the underlying query to be refreshed when pressing ENTER within the criteria field in a clause - by default the "GO" button must explicitely be pressed for this to happen.

    Thanks a lot for your kind help.

All Replies

  • Wednesday, July 11, 2012 9:13 PM
    Moderator
     
     Answered
    If I recall correctly, the Filter Control is not automatable through code and was only designed to be used through UI.

    Justin Anderson, LightSwitch Development Team

    • Marked As Answer by Dan721 Thursday, July 12, 2012 9:07 AM
    •  
  • Thursday, July 12, 2012 9:06 AM
     
     
    Nevertheless, thanks for your reply Justin.
  • Friday, July 27, 2012 3:04 PM
     
     
    I set the FilterTerm="" and then called the refresh method on my query.