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

SignalR create record puts new row at bottom of grid - how do we make it go to the top?

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 03 May 2016, 04:45 PM

Users are creating a new record for a bound grid inside of a popup. Upon return, the new row is created via SignalR & the .create method but it's showing at the bottom of the grid. Is it possible to place the new record at the top of the grid (w/out changing sort)?

For, refreshing the grid is a partial workaround (SO link below), but still does not place the row where we would like it.

Thanks!

http://stackoverflow.com/questions/29529318/how-to-use-signalr-datasource-with-kendo-grid

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 05 May 2016, 08:00 AM
Hi Alex,

Grid widget has a configuration option that allows the developer to specify if the newly created row should be inserted at the top or at the bottom. If the Grid data is sorted however, the sort order will take precedence. There is no build-in way to override this behaviour.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or