This is a migrated thread and some comments may be shown as answers.

[Solved] Javascript Error when used with splitter

3 Answers 139 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 24 Aug 2009, 09:05 PM
I have a page with a header menu, left column, splitter, right column. The right column is showing different pages, dependent on menu item selections, using AJAX to change the NavigateURL in the right splitter pane.

Whenever the page in the right pane contains a ComboBox and then AJAX is used to change the right pane to a page that does not use a combobox the javascript DOM is corrupted. When the page is subsequently refreshed by pressing F5, or clicking a menu item that causes a full page postback, a javascript error is thrown in the following function of the ComboBox 'unexpected call to property or method':

_removeDropDown:function(){var b=this.get_dropDownElement().parentNode;  
b.parentNode.removeChild(b);  
 

This problem occurs in IE7 and IE8 but not Firefox.

Do you know of any workaround or fix for this problem?

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 25 Aug 2009, 12:51 PM
Hello Andy,

We are not aware of this problem. Can you please send us a sample project so we can test it?

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andy
Top achievements
Rank 1
answered on 25 Aug 2009, 03:39 PM
Hi,

I'm not able to put together a sample project right now but I can explain to you a little more about what the problem is.

You are attaching some handlers for radcombox 'unload' events when the right splitter pane contains a radcombobox.

If the navigateurl of the right splitter is then changed, so that there is no radcombo box there any more, then when the unload event happens (by F5 or synchronous postback) a javascript error is thrown because there is no radcombox in the right-hand frame to unload.

Whenever, the navigate URL of the right splitter is changed it seems like you ought to detach the combobox 'unload' event handlers.

I am not sure why your unload handlers don't trigger when the navigate url is changed. Only a full postback or F5 triggers the handler to run.

Only affects IE browsers, as far as I can tell.

Andy
0
Simon
Telerik team
answered on 31 Aug 2009, 04:04 PM
Hi Andy,

Thank you for the additional info.

I tried reproducing the issue (with the latest version of Telerik.Web.UI) by creating a test case from your description without success.

Please see the attached pages. Am I missing something? If so, can you guide me how to modify the pages in order to reproduce the issue?

Sincerely yours,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Andy
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Andy
Top achievements
Rank 1
Simon
Telerik team
Share this question
or