سؤال

I have a Grid where Smart Rendering is enabled, one of the operations on that Grid require that I locate several rows that have the same value in a particular column.

Columns are not necessarily sorted on that field, so I cannot assume the rows will be in the same sliding window of the buffer. During the findCell function, it throws an exception, when it crosses the buffer boundary. Is there a way to make this happen within the DHTMLX framework, or do I need to write special code for this?

Exception:

Microsoft JScript runtime error: Unable to get value of the property '_locator': object is null or undefined

_get_cell_value:function(a,b,c){return a._locator?(this._c_order&&(b=this._c_order[b]),a._locator.call(this,a.data,b)):‌​this.cells3(a,b)[c?c:"getValue"]()} 
هل كانت مفيدة؟

المحلول

For what its worth, findCell appears to be incompatible with Smart Rendering, it doesn't automatically go down to the db to read in the next batch of rows to continue searching on the grid itself. I ended up writing my own rather lengthy Ajax/mvc search code to find the rows on disk and insert them on the grid.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top