When a new record is added on the IGGrid, the default behavior is it would dropped to the bottom where the user would not see unless they scroll down. How can I have it on the first row? Sorting does not seem to work.
Hello drchip ,
I have been looking into your requirements and I could suggest you handle the rowAdding event of the igGrid and cancel it, then in the handler you can manually insert the row where you want. The rowAdding event is described here:
http://help.infragistics.com/jQuery/2012.2/ui.iggridupdating#events
Please note that in this event you can get the values of the cells like this:
ui.values, also you can cancel it by returning false.
Then you can use the insertRow method of the igGrid data source:
http://help.infragistics.com/jQuery/2012.2/ig.datasource#methods
$("#grid1").data("igGrid").dataSource.insertRow(10100, {ProductID:10100, Name: "CD Player" }, 0, true);
For additional reference on this please check:
http://ko.infragistics.com/community/forums/p/76796/388060.aspx
Please let me know if this helps.