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

Refresh temporary screen after remove Row operation?

2 Answers 231 Views
Grid
This is a migrated thread and some comments may be shown as answers.
NHJ
Top achievements
Rank 1
NHJ asked on 17 Dec 2019, 02:11 AM
I'm working through an Incell editable.

Select the list you want to delete and press the Delete button to execute the remove row and the row will be "temporarily deleted", and press the Save button to actually delete it with the Sync () method.
After that, the grid is refreshed.

But what I want
If a row is deleted, the following data fills in the empty spaces.

remove Row removes the row, but does not load the next piece of data to fill the empty space.

In other words, if you remove the entire page, you will get "no data".

I want to be filled with the next data as much as the deleted rows.

(Important) Clearly, if you actually delete it with Sync () method, the screen will be updated.

What I want is a refresh when I've only progressed to remove Row ().)

Is there a way?

2 Answers, 1 is accepted

Sort by
0
NHJ
Top achievements
Rank 1
answered on 17 Dec 2019, 02:13 AM
recordRemove: function(){
    console.log(' delete button \'click\' event is fired.');
    var _this = fnObj.gridView01;
    var selectedList = _this.grid.select();
 
    if (selectedList.length == 0){
        axDialog.alert('삭제할 렉정보를 선택해 주세요');
        return false;
    }else{
 
        axDialog.alert("삭제 후 저장을 해야 반영이 됩니다.",
            function(){
                selectedList.each(function(){
                    _this.grid.removeRow($(this).closest('tr'));
                });       
            }
        );
    }
}

 

 

This is the remove Row part I'm talking about. As we go so far, we hope that the temporary deleted rows will continue to be filled with the next data.

0
Veselin Tsvetanov
Telerik team
answered on 18 Dec 2019, 01:42 PM

Hi Nam,

I am afraid that I did not understand fully what you are trying to achieve. By default, if arow in the Grid is removed, the current page gets filled with the first item from the next page in the Grid. Here you could find a small Dojo sample demonstrating that: https://dojo.telerik.com/egazAvuR

May I ask you to modify the above sample, so it replicates the issue that you are facing and send it back to me? Also, could you, please, explain in detail what is the desired result after the delete operation?

Regards,
Veselin Tsvetanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
NHJ
Top achievements
Rank 1
Answers by
NHJ
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or