Can someone please provide me with a sample demonstrating how to bind to a WebDataGrid client side NOT using a datasource like in the samples browser? I would like to make a web service call using JSON and bind the data client side, but the only example I can find is the one in the samples browser connecting to a database.
Hi,
I tried $(grid.tableTemplate).render(newData).appendTo(grid._elements.dataTbl.lastChild); but it's throwing an exception. Object doesn't support this property or method. I am using JQuery 1.4.2, so should I be using a more newer version?
Dave
Hello bpg730,
I created a new support ticket on your behalf.
CAS-55857-5X0RX8
You can update the case it with your isolated sample.
Hope hearing from you.
please do not use _get_rows() for now. You should probably have got the JSON on the client-side, so you can check how many rows are there by doing jsonData.length.
Our online sample about client binding does clear the rows after every rebinding which happens within a specific time interval, so i am not sure what could be wrong in your case. You can follow up with dev support or attach a sample project to me and i'll resolve the issue
Thank you
Angel
After calling _applyClientBindings(), grid._get_rows() still contains no rows.
Also, I am still having trouble clearing the old rows before re-binding data to the grid. When I try to rebind a second chunk of data to the grid, it is just appending it to the bottom of the previous data.
Everything should be working fine in the CTP, this is not related to that. I suppose this could be related to something else specific to the javascript code / project. Also please note that the correct API call is called _applyClientBindings(), not _dataBind(). Even though _dataBind() exists, it should not be called as the logic there it is not based on jQuery but MS AJAX. We will of course refactor this cleanly for the RTM release.
Hope it helps,