Why is stateSaveCallback filling all columns with the same search mask?
Why is stateSaveCallback filling all columns with the same search mask?
fvc
Posts: 0Questions: 0Answers: 0
Hi there,
when using stateSaveCallback why is the table search mask "Customer name" being replicated to all columns search mask?
{
"time":1511946405718,
"start":0,
"length":15,
"order":[[2,"asc"]],
"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true},
"columns":[
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true}}
]
}
my expected result was
{
"time":1511946405718,
"start":0,
"length":15,
"order":[[2,"asc"]],
"search":{"search":"CUSTOMER NAME","smart":true,"regex":false,"caseInsensitive":true},
"columns":[
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}},
{"visible":true,"search":{"search":"","smart":true,"regex":false,"caseInsensitive":true}}
]
}
I cant figure why this is happening
thanks in advance for some help
This discussion has been closed.