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

[Solved] Add Row to End instead of Top

2 Answers 119 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.
Bob Mills
Top achievements
Rank 2
Bob Mills asked on 18 May 2011, 08:37 PM
We wanted to add our new grid rows to the end instead of the top (by default).

I have accomplished this by:
Alter File telerik.gid.editing.js
In function this.insert
Change container.prepend(tr);
to container.append(tr);

This will make your row go to the bottom of the grid assuming you are using the uncompressed version of the file.
The same thing can be changed in the minimized version as well.

Keep in mind that you may need to write some jQuery to select the cell of the last row instead of the default on addRow is to select the first row's cell.

Thanks,
Jed Racine

2 Answers, 1 is accepted

Sort by
0
mahmoud
Top achievements
Rank 1
answered on 21 Jun 2011, 09:25 AM
Thanks for your solution,
is there any better solution ? I prefer not to change original scripts if telerik.
0
Venkatesh
Top achievements
Rank 1
answered on 01 Aug 2011, 10:25 AM
Hi,

   Could you please send me some sample code for Jquery

Thanks,

regards,
Venkatesh
Tags
Grid
Asked by
Bob Mills
Top achievements
Rank 2
Answers by
mahmoud
Top achievements
Rank 1
Venkatesh
Top achievements
Rank 1
Share this question
or