Grid columns out of shape in refresh button click

Hi,
I need help grid columns out of shape.
I have faced a problem when I click my custom refresh button the grid columns out of shape.
But when I click the browser refresh button it's working fine.
But keep in mind in this button my grid has refreshed
please check my code and sharp sort are attach.

Attachment: refresh_button_grid_columns_out_of_shap_6f0af796.zip

3 Replies 1 reply marked as answer

RR Rajapandi Ravi Syncfusion Team June 4, 2021 12:49 PM UTC

Hi Rizwan, 

Greetings from syncfusion support 

We checked the reported problem, and it was occurring because the columns are not properly refreshed. You can achieve your requirement by using calling the freezeRefresh() method. Please refer the below code example for more information. 

function gridRefresh() { 
 
 var testingggrid = document.getElementById('BankStatementsNewGridView').ej2_instances[0]; 
            testingggrid.height = $(window).height() - 300; 
            testingggrid. freezeRefresh(); //call the freezeRefresh() method 
            $("#btn_Gridrefresh").button('reset'); 
 
    } 

Regards, 
Rajapandi R 


Marked as answer

RI Rizwan June 4, 2021 01:31 PM UTC

My problem has been resolved.
Thank you for your great support


RR Rajapandi Ravi Syncfusion Team June 7, 2021 03:43 AM UTC

Hi Rizwan, 

We are happy to hear that your issue has been resolved. 

Please get back to us if you need further assistance. 

Regards, 
Rajapandi R 


Loader.
Up arrow icon