Posted 14 September 2017, 12:01 pm EST
When the grid is filtered and allowAdd is true, copying multiple rows and pasting into the last row will cause the grid to error out.

Forums Home / Wijmo / General Discussion
Posted by: ian-chen on 14 September 2017, 12:01 pm EST
Posted 14 September 2017, 12:01 pm EST
When the grid is filtered and allowAdd is true, copying multiple rows and pasting into the last row will cause the grid to error out.

Posted 14 September 2017, 12:01 pm EST
2nd screenshot

Posted 14 September 2017, 12:01 pm EST
Hello ian,
We are investigating on this issue and let you know by tomorrow.
Thanks,
Manish Kumar Gupta
Posted 14 September 2017, 12:01 pm EST
Hello ian,
Thanks for reporting the issue. We are able to replicate the issue at our end and it looks like a bug.
Hence, this issue has been escalated to the concerned team for further investigation with tracking id 255748. We will let you know as soon as we get any update on this issue.
Thanks,
Manish Kumar Gupta
Posted 26 January 2018, 1:01 am EST
Hi Ian,
We get a response from the development team.
The problem is with sample code:
The filter expression assumes item.country is not null, and for new items it is null.
Specifically, here is the problem:
cvData.filter =
function (item) {
return !filterText ||
item.country.toLowerCase().indexOf (filterText) > -1);
};
And here is a possible fix:
cvData.filter =
function (item) {
return !filterText ||
(item.country && item.country.toLowerCase().indexOf (filterText) > -1));
}
```;
~Manish