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

[Solved] Row index with Insert, Delete, Update

0 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Quang
Top achievements
Rank 1
Quang asked on 04 May 2011, 12:44 AM
Hi there!
I created a column row index with code below:
//column rowindex
columns.Template(o => o.RowIndex).Title("No.").ClientTemplate("<#= ++index #>")
 
//ondatedinding event
function onDataBinding() {
        var grid = $('#GridBusTripEmp').data('tGrid')
        index = (grid.currentPage - 1) * grid.pageSize;
    }

this code is only right when i used for Grid only listing. but it is wrong with Insert,Delete,Update.

how to do it right?

Thanks for support.







Tags
Grid
Asked by
Quang
Top achievements
Rank 1
Share this question
or