This is a migrated thread and some comments may be shown as answers.

Can't fire events to separate grids from filter

4 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 06 Apr 2017, 06:57 PM

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", "");                                       
}

4 Answers, 1 is accepted

Sort by
0
J
Top achievements
Rank 1
answered on 13 Apr 2017, 04:36 PM
Anyone? Anyone have alternative solutions if this is a bug? 
0
J
Top achievements
Rank 1
answered on 14 Apr 2017, 03:20 PM
bump
0
J
Top achievements
Rank 1
answered on 14 Apr 2017, 09:26 PM
so lonely.
0
J
Top achievements
Rank 1
answered on 18 Jul 2017, 01:39 PM
T_T
Tags
Grid
Asked by
J
Top achievements
Rank 1
Answers by
J
Top achievements
Rank 1
Share this question
or