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

When using a custom Checkbox template editor for in-cell in combination of option Navigatable cause jump scrolling to top

1 Answer 268 Views
Grid
This is a migrated thread and some comments may be shown as answers.
NerdBrick
Top achievements
Rank 1
NerdBrick asked on 12 Jul 2018, 04:36 PM

We wanted to use in-cell editing with a checkbox following this as an example. 

https://www.telerik.com/support/code-library/checkbox-column-and-incell-editing 
Pulled from : https://www.telerik.com/forums/grid-checkbox-editor-issue-with-incell-editing

Plus we used the option "Navigatable" 

The result is when the checkbox is selected in the column, the Grid will jump scroll to the top. If you remove the Navigatable (false), the problem goes away. 

Here is a work example of the issue. 

https://dojo.telerik.com/iXoxeveM

In our example, we are trying to support keyboard navigation along with in-cell editing. Are we trying to mix two things that can't be mixed together?

Thank you

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 16 Jul 2018, 08:15 AM
Hi,

When the "set" method of a dataItem is used, it will trigger the "change" event of the dataSource, which will then trigger the rebinding of the Grid. This is the reason why the navigation goes to the first cell when you click on the checkbox. 

In order to resolve the issue with the navigation you will have to use the checkbox editor in edit mode only:
Another option would be to change the value in the dataItem without using the "set" method and manually redraw the row as shown in the following HowTo article:
Hope this helps.


Regards,
Konstantin Dikov
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
NerdBrick
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or