i have a grid using a row template to show images. i want to update the data source and have the row template update the row based on the new data. What is the best way to do this?
this seems a bit more complicated. it loses the current page and/or scroll within the page. how do i rebind the data without losing my selected row. i am remembering the row index and selecting the row after bind, but how do i make it scroll into view.
Hello twinfrey ,
The selected row will be lost when you re-databind since it will re-render all the data anew. You’ll indeed need to remember the selected row and then set it again in this case.
Let me know if you have any further questions.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
is there a way to rebind without the rowindex being set to zero? must i remember the selected row and reset the index after bind?
Let me know if you have any further questions regarding this or if you need further assistance.
if you update the data source, you will need to rebind the grid in order to see the new changes rendered. Otherwise you need to use KnockoutJS, we have integration for it as CTP in 2012.1. In that case only the updated cells will be re-rendered, which is a lot better in terms of performance. you can find KnockoutJS samples with the igGrid here:
http://samples.infragistics.com/jquery/grid/grid-knockoutjs-integration
Hope it helps. Thanks,
Angel