Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
420
JavaScript error on loading WebDataGrid
posted

We have had our share of problems with WebDataGrid and one remains. When we populate the data from WCF Data Services the first load hits to a dynamic JavaScript error which is apparently related to scrollbar. Here's the dynamic script source:

_onHorizontalScrollBarWidthInit: function (scrollBar)
    {
        var scrollDiv = null;
        if (this._grid._rows.get_length() < 1)
            scrollDiv = this.__getFirstScrollDiv();
        else
        {
            var row = this._grid._rows.get_row(0).get_element();

The code goes on, but the last one causes Microsoft JScript runtime error: 'this._grid._rows.get_row(...)' is null or not an object.

Apparently the rows in there is null. To make things more complicated, if I sort the data the grid shows the data and everything from there seems to be working just fine... until I reload the data to the grid!

Any ideas or workarounds?

Parents
  • 33839
    posted

    Hi AriV,
    What version and build number are you using?  If you don't have the latest Service Release, could you upgrade to that?  Then let us know if the problem persists.  Also, looks like you have column fixing on?

    regards,
    David Young 

Reply Children
No Data