Nevron Forum

OnViewRangeChanged event

https://www.nevron.com/Forum/Topic6071.aspx

By André Spitzner 1 - Monday, January 30, 2012

Hi,

is there a way to connect to a event when the ViewRange or PageRange is changed?

I have see the Scrollbar has such a event, but its only fired if someone scroll, but this is not what i want. The way with the OnAfterpaint callback is also not usable for me.

By Nevron Support - Monday, January 30, 2012

Hi Andre,

If you're using the NDataZoomTool to modify the range you can hook to the EndDrag event there:

dataZoomTool.EndDrag += new EventHandler(dataZoomTool_EndDrag);
....

void dataZoomTool_EndDrag(object sender, EventArgs e)
{
// do something on end drag
}

Hope this helps - let us know if you meet any problems.

By André Spitzner 1 - Tuesday, January 31, 2012

Yes, thats it. Thank you. I use this events as well for moving constant lines and so on.

Sometimes i can not see the forest for the trees. Too much lines of code in my head.