When I select a row that is unseen because there is more than a screen full of data like 200 rows. The user has to scroll to find the row. I have tried editCell to get the row to show but that does not work either. Here is a sample of the code that I have tried.
var driverId = 190; // near the end of the data table
$$(“myTable”).eachRow(function(row){
const record = $$(“myTable”).getItem(row);
var CurrDriver = record[“DriverNo”];
if (CurrDriver==driverId){
$$(“myTable”).select(row,“DriverNo”,false);
$$(“myTable”).editCell(row,“DriverNo”);
}
});
@daverch
did you try showCell?
var item = $$("myTable").find(obj=>obj.DriverNo==190, true);
if(item){
$$("myTable").showCell(item.id, "DriverNo");
//if you need to edit the cell, you can simply use editCell with `show:true`
$$("myTable").editCell(item.id, "DriverNo", false, true);
}
That worked, thanks.