eckhchri / pcars-ds-liveview

Provides a html page for project cars dedicated server and display a map of the current race.
14 stars 1 forks source link

jqGrid data refresh via worker #11

Closed eckhchri closed 9 years ago

eckhchri commented 9 years ago

within the function: refreshTrackList(a) During data refresh one dataset is getting lost. Have something todo with function return code of: jQuery("#tracklisttable").getGridParam("reccount"); This also returns an array size of 1 if no data was added to the table.

these both methods did not fix the bug: //jQuery("#tracklisttable").jqGrid('GridUnload'); // destroy complete table working //jQuery("#tracklisttable").trigger("clearGridData"); // unload did not work :-(

eckhchri commented 9 years ago

[Solved] change "if (i <= GridSize)" to "if (i < GridSize)"