fnAddData crashing after certain number of rows.

fnAddData crashing after certain number of rows.

DaveomaniaDaveomania Posts: 15Questions: 0Answers: 0
edited March 2011 in General
Hello there,

I have a question regarding the use of fnAddData when drawing the table from an ajax call.

In my application I use codebehind and gridviews all over the place to create datatables, and load them with sometimes thousands of rows of data.. just by setting the datasource on the gridview, so far so good.

Now I am attempting to use fnAddData with a retrieved array from a webservice using AJAX and LINQ.

It seems as though after 306 records in an array, it crashes. I have narrowed it down to not being a data problem and have tested with many different sets of data. It all loads within 1 second until I try to grab more than 306 records.

[code]
if (data.d.length > 0) {
goTable.fnAddData(data.d);
}
[/code]

data.d being a 2D array of type [code] string[][] [/code]

I greatly appreciate any thoughts on this matter. Thank you!

Dave

Replies

  • DaveomaniaDaveomania Posts: 15Questions: 0Answers: 0
    Bumping for feedback :)

    I realize this could be a javascript issue.. previous before passing an array I was looping through my result and using fnAddData() to add each row and column.. it was quite capable of making it over say 1000 records but became slow for obvious reasons.

    Still trying to figure out why when it hits 307 records, it stops responding.. no script messages, and no timeouts. I'm stumped.

    Thanks again if you can think of anything! :D

    Dave
This discussion has been closed.