Dataview reload parentnode null error

Hi,

I’m using DHTMLXDataview from dhtmlxSuite_v30_pro_110707 and when I reload the dataview Firefox (version 11.0) throws an error:

Error: b.parentNode is null
Source: dhtmlxdataview.js
Line: 16

The dataview gets reloaded by an onAfterSelect event from another dataview. The error repeats when I use the scroll bar.

Sometimes the dataview shows previous data as well after a reload.
Before the load is triggered I use the view.clearAll(); but the error still occurs.

Could you help me to solve this error

Hi,

please attach the sample where we could reproduce the issue.

Thank you,

tests.joomberg.nl/select/

For instance, when you select Australia and than Belgium everything seems to be fine but when you scroll down in the second view, it shows the provinces of Australia too.

I’ve attached the index.php and the data.php

20120508.zip (1.73 KB)

The function dataview() is incorrect. You are create the new “province” dataview each time the country is selected. The previous dataview is not removed. You just append the new dataview to the province_container div.

The correct approach is to create “province” dataview once. And call only clearAll() and load methods when the new country is selected.

Sorry, my bad

Thank you very much! The problem is solved now.