Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
How I can update RowNumbering by JS?
posted

On my WebDataGrid I am adding and deleting rows by JS. When I delete rows the RowNumbering didnt updated.

this is how I delete rows:

var gridDel = $find(gridName);
var row = gridDel.get_behaviors().get_selection().get_selectedRows().getItem(0);
gridDel.get_rows().remove(row);

How I can update RowNumbering by JS?

  • 29417
    Offline posted

    Hello Anton,

     

    I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

  • 29417
    Offline posted

    Hello Anton,

     

    Thank you for posting in our forum.

     

    I’ve tested this on my side and it seems that the row numbering is updated as expected after you delete the row and the change is committed to the server side.

    Please refer to the attached sample. For example if you delete the first row then the RowNumbering will be recalculated and the row numbering will again start from 1 as it would be expected.

    Let me know if this is what you’re trying to achieve or if you’re after a different behavior.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

    WDG_RowNumbering.zip