46
Scripting / Set different value of row and col in Grid Theme in different filter
« on: March 06, 2022, 05:18:57 PM »
I would like to set different value of row and col in Grid Theme while in different filter. Below code is my part of cocept. My question is, how to redraw the grid while changing the filter? I don't know the code to complete my task. Any one can help me? Thanks.
Code: [Select]
function display_transitions( ttype, var, ttime ) {
switch ( ttype ) {
case Transition.ToNewList:
if (fe.list.filter_index = 0){
rows = 4;
cols = 4;
redraw grid()
}
if (fe.list.filter_index = 1){
rows = 2;
cols = 2;
redraw grid()
}
if (fe.list.filter_index = 2){
rows = 3;
cols = 3;
redraw grid()
}
}