Hi Morten,
Your solution looks OK. As a general information,
read method of the dataSource allows the developer to pass additional data as optional parameter.
This could be used as alternative approach, in case you would like to avoid using another global variable.
Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI now!