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

JavaScript Error on MouseOver event of RadComboBox withing RadGrid

7 Answers 107 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nhilesh
Top achievements
Rank 1
Nhilesh asked on 16 Mar 2009, 07:38 AM
Hello,

We are using the RadCombobox within RadGrid, and constantly keep getting the JavaScript error(s) whenever the mouse hovers on any of the RadCombobox within RadGrid on various pages.

The JavaScript Message keeps saying as under:

Line: 7
Char: 73372
Error: Object doesn't support this property or method.
Code: 0

On deep diging, I found the error is caused in following thing..

/* START MicrosoftAjax.js */

//----------------------------------------------------------

// Copyright (C) Microsoft Corporation. All rights reserved.

//----------------------------------------------------------
....................some javascript.....................
var d=a.getClientRects();
....................some more javascript.....................
/* END MicrosoftAjax.js */

Please let me know the best possible solution.

Regards,
Nhilesh Baua


7 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 18 Mar 2009, 02:01 PM
Hi Nhilesh,

This is a bug in the ASP.NET AJAX Library - please read more about it here.

Apart from changing your approach, so that the ComboBox in the Grid is not disabled, you could use the following workaround: add the following JavaScript code to your page, after the <FORM> element's closing tag:

<script type="text/javascript">  
    var oldDomEvent=Sys.UI.DomEvent;  
    Sys.UI.DomEvent=function(rawEvent){if(rawEvent.srcElement&&typeof(rawEvent.srcElement.getClientRects)=="undefined")return;  
    var evt=new oldDomEvent(rawEvent);for(var o in evt)this[o]=evt[o];}  
    for(var o in oldDomEvent)Sys.UI.DomEvent[o]=oldDomEvent[o];  
</script> 

Regards,
Simon
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
Nhilesh
Top achievements
Rank 1
answered on 19 Mar 2009, 07:19 AM
Hi Simon,

Thanks for your reply.

I tried with the solution you've just suggested on one of the pages we have
Now I am getting the following error, [however the frequancy of this error is low, still I want my code to be error free.]

Line: 4291 [Which never existed]
Char: 1
Error: 'tagName' is null or not an object.
Code: 0

For your information;
I have created a user control and I do not have <form> tags embbaded in control's markup,
We want to integrate this user control in MOSS as Smart part.
We are using  dataItem.getElementsByTagName() in RowSelected and RowDeselected events for selecting/deselecting the rows
As per your solution I have still added the code [Script] as suggested at the end of my mark-up.

Thanks in advance,
Nhilesh Baua.
0
Simon
Telerik team
answered on 19 Mar 2009, 07:59 AM
Hi Nhilesh,

Thank you for getting back to me.

Could you specify how you are testing the workaround: in a MOSS Smart part or a standard Web User Control in a standard Web Site?

Could you first test with the standard Web Site to make sure that the workaround operates properly and then try integrating it in MOSS?

Greetings,
Simon
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
Nhilesh
Top achievements
Rank 1
answered on 19 Mar 2009, 08:31 AM
Hi Simon,

Thanks for the prompt reply,

I am trying it within standard Web User Control in a web application project using VS 2005.
We will host it as a smart party only once it's operates properly within the testing enviornment.

Regards,
Nhilesh Baua.
0
Simon
Telerik team
answered on 19 Mar 2009, 09:04 AM
Hi Nhilesh,

In this case, could you send me the project where you have applied the workaround and the JavaScript error appears?

I will inspect it and will make the necessary modifications to the code to resolve the latest error as well as to apply the workaround properly.

Regards,
Simon
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
Nhilesh
Top achievements
Rank 1
answered on 19 Mar 2009, 09:10 AM
Hi Simon,

I may not be able to send you the project,
If required, I can paste the Markup here, or suggest me the way to attched the controls file.

Regards,
Nhilesh Baua
0
Simon
Telerik team
answered on 19 Mar 2009, 09:20 AM
Hello Nhilesh,

You could send us the files via a formal support ticket - please open one from your Client.net account from here.

Please excuse me for not guiding you in this direction in the first place.

Greetings,
Simon
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.
Tags
ComboBox
Asked by
Nhilesh
Top achievements
Rank 1
Answers by
Simon
Telerik team
Nhilesh
Top achievements
Rank 1
Share this question
or