DataItem.Skip in .net dhtmlxRequestHandler -> endless loop

Hi

Should I be able to use e.DataItem.Skip in my dhtmlxRequestHandler pre render function? e.g.

void connector_ItemPrerender(object sender, ItemPrerenderEventArgs e)
{
if (e.DataItem.DataFields[“Field1”].Contains(“Hide”))
e.DataItem.Skip = true;
}

My grid uses .load(“GetData.ashx”) to load the xml data

When the grid receives the response, it immediately requests “GetData.ashx” again in an endless loop. I think it’s because “total_count” at the beginning of the XML response is inaccurate. It’s the original number of rows to be rendered rather than how many were actually rendered.

Am I just not meant to use e.DataItem.Skip

Tnx

Hello,
you can’t use ‘skip’ filtering with dynamic loading. You may either disable dyn loading or to do filtering with connector rules, i.e.connector.Request.Rules.Add( new FieldRule((TableField)"Field1", Operator.Like, "Hide") );