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

Method addrow does not fire event edit when scroll virtuell with version(2017.3.913) and later.

3 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Magnus
Top achievements
Rank 1
Magnus asked on 23 Oct 2017, 08:54 AM
Is this a bug? For the events fired has been changed with latest versions

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Oct 2017, 05:57 AM
Hello, Magnus,

I made an example with an editable Grid, virtual scrolling, the edit event, the addRow method and it is working as expected:

http://dojo.telerik.com/aFaMuh

Could you please provide an example demonstrating the issue, so we can observe it, and log it for fixing if necessary. The issue may only occur in a specific configuration.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Magnus
Top achievements
Rank 1
answered on 01 Nov 2017, 03:39 PM

Hello,

Maybe I'am using it a little diffrent.

I have done small exemple how I have been using it.
I add a empty row last in the grid and when the user click the row.
addrow metod is called and jump back to next last row is made.

http://dojo.telerik.com/aFaMuh/3
using 2017.2.621 and works as I want.
the console displays events change, edit, change, edit when last row is clicked

http://dojo.telerik.com/aFaMuh/4
using 2017.3.1018 and does not work as I want
the console displays events change, change, edit when last row is clicked
but if scroll is true and not virtuell the console displays events change, edit, change, edit when last row is clicked and works as I want it to do.

Thanks for your help

 

 

0
Stefan
Telerik team
answered on 03 Nov 2017, 09:32 AM
Hello, Magnus,

The described result is expected as the virtual scrolling is expecting the number of the page to the at least three times the visible items.

It was working as expected(only at first side) with version 2017.2.621 as the editing was not supported with virtual scrolling and there were many changes after the editing was introduced in order to ensure that the editing will work as expected:

https://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#virtual-scrolling

We can recommend using endless scrolling in a scenario where the virtual scrolling hits a limitation.

https://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#endless-scrolling

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Magnus
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Magnus
Top achievements
Rank 1
Share this question
or