Can't fire events to separate grids from filter

5 posts, 0 answers
  1. J
    J avatar
    35 posts
    Member since:
    Oct 2012

    Posted 06 Apr 2017 Link to this post

    OK in short, I have one grid that, based on row selection, populates another grid. I would like filtering on the first grid to "reset"/"clear" the second grid, and obviously filter the first grid. The problem I'm seeing is that only one event will fire - if I make the filter happen first, the filter works but the .fireCommand() event doesn't fire. If I make the .fireCommand() event first, the event is fired but the filter doesn't happen. Code for the filter function below.

     

    function NameChanged(sender) {
        var firstGrid = $find("<%= rgUsers.ClientID %>").get_masterTableView();
        var secondGrid = $find("<%= rgAccess.ClientID %>").get_masterTableView();
     
        if (sender.get_value() == "") {
            tableView.filter("gbcFullName", sender.get_value(), "NoFilter");
        }
        else {
            tableView.filter("gbcFullName", sender.get_value(), "Contains");
        }
     
        secondGrid.fireCommand("Clear", "");                                       
    }
  2. J
    J avatar
    35 posts
    Member since:
    Oct 2012

    Posted 13 Apr 2017 Link to this post

    Anyone? Anyone have alternative solutions if this is a bug? 
  3. J
    J avatar
    35 posts
    Member since:
    Oct 2012

    Posted 14 Apr 2017 Link to this post

    bump
  4. J
    J avatar
    35 posts
    Member since:
    Oct 2012

    Posted 14 Apr 2017 Link to this post

    so lonely.
  5. J
    J avatar
    35 posts
    Member since:
    Oct 2012

    Posted 18 Jul 2017 Link to this post

    T_T
Back to Top