Hi everyone. I am having an issue with the Webservice binding client binding example here: http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx. It works fine up to 10 rows of data, but anything after 10 rows the elements inside the template column come back as null when trying to get the object via javascript.
You can reproduce this by opening up the sample web site up in visual studios and then adding a couple more stock tickers to the App_Code/Grid/QuoteWebService.cs web service.
Then view the Grid/Examples/Client/LiveData/DefaultCS.aspx in a web browser and you will see that it errors on the 11th row saying that it cannot find the image element inside of the template column.
Both of the spanControl and image returns null in the DefaultCS.aspx page.
You can reproduce this by opening up the sample web site up in visual studios and then adding a couple more stock tickers to the App_Code/Grid/QuoteWebService.cs web service.
| // Lines 48 and 92 |
| string stockTickers = "MSFT, YHOO, GOOG, HPQ, DELL, AAPL, NOVL, IBM, IBN, IBKR, INO, AMAT, BAC, CIT, DIS, EBAY"; |
Then view the Grid/Examples/Client/LiveData/DefaultCS.aspx in a web browser and you will see that it errors on the 11th row saying that it cannot find the image element inside of the template column.
Both of the spanControl and image returns null in the DefaultCS.aspx page.
| var spanControl = args.get_item().get_cell("Change").getElementsByTagName('span')[0]; |
| var image = args.get_item().get_cell("Change").getElementsByTagName('img')[0]; |