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

KendoGrid Add New Row

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kranthi
Top achievements
Rank 1
Kranthi asked on 11 Apr 2017, 02:18 PM

Hello,

I am facing couple of issues in KendoGrid.

1. I wanted to add a new row once user starts editing the last row, but I need focus on current row. Currently, when i start editing, new row is added but focus shifts on new row.

2. Need an indicator for all the new Row added

3. Can we fire validation on complete row instead of a cell?

Please help if there is any possibility.

Thanks in anticipation.

Kranthi

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 13 Apr 2017, 11:39 AM

Hello,

I already replied to to the same questions in your support ticket, but I will paste the answers here as well in order that this might be helpful for others: 

     1. Once a new item is added to the Kendo UI DataSource the entire grid is refreshed and the focus state is reset to the first cell. The only solution is to store the lastly focused cell and reapply the focus state using the current method of the  Kendo uI Grid. 
     2. The dirty indicator is simply a span element with class="k-dirty". So basically you can prepend this element to the table cell: 

$(tableCell).prepend($("<span class='k-dirty'></span>"))


    3. I am afraid that there is no row validation. 

 

Regards,

Boyan Dimitrov

Telerik by Progress

Try our brand new, jQuery-free Angular 2 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
Kranthi
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or