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

Encountering bug in ActionSheet.

5 Answers 102 Views
ActionSheet
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 21 Feb 2013, 09:09 PM
Hello,
 
When I click on the button to initiate an actionsheet, I'm getting the following error:

Microsoft JScript runtime error: Unable to get value of the property 'openFor': object is null or undefined. This is happening in kendo.all.min.js.

Here is the code:

<script
type="text/javascript">
     function
GoToPrev(e) {
         alert(
'c=' + e.context + ', t=' + e.target);
         document.forms[0].submit();
     }
</script>

<a
data-role="button" data-rel="actionsheet" href="#goTo">Go To</a>

<ul
data-role="actionsheet" id="goTo">
     <
li><a data-action="GoToPrev">Previous Asset</a></li>
     <
li><a data-action="GoToNext">Next Asset</a></li>
</
ul>
 
Thx...Bob Baldwin
Trabon Solutions
Licensed users of Telerik Devcraft Complete

5 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 22 Feb 2013, 08:47 AM
Hello Bob,

Kendo UI Mobile is fully functional in webkit-based browsers - given the error, you are most probably testing in IE.  

If you still encounter the problem while testing in Chrome (or Safari, OS X), I would like to suggest that you create a sample project that demonstrates the problem - we will take a look. 

Thank you,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bob
Top achievements
Rank 1
answered on 01 Mar 2013, 06:02 PM
Hi Petyo,

We are encountering this issue when we link from a view with a listview widget in it to a view with an actionsheet widget in it.  This is occuring on Android(Chrome), IPad(Safari), and IE.

I've attached an IE browser HTML source file captured just before we click the "GoTo" button to display the Actionsheet.  If you change the css and script references to point to your resource locations, the attached txt file should recreate the problem on your end even including on the android and ipad devices.

When pressing the GoTo button within IE, the error is:
Microsoft JScript runtime error: Unable to get value of the property 'openFor': object is null or undefined

We are seeing similar errors within the other browsers.  Please help us resolve this issue.

Thx...Bob Baldwin
Trabon Solutions
0
Bob
Top achievements
Rank 1
answered on 01 Mar 2013, 06:04 PM
We also tried this with the latest internal build (2012.3.1413) and it behaved the same and returned the same error.
0
Petyo
Telerik team
answered on 05 Mar 2013, 08:34 AM
Hi Bob,

From what I see in the generated HTML source, it looks like you are including both kendo.all and kendo.aspnetmvc javascript source files - most probably this is the reason for the error you encounter. Please remove one of the references. 

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bob
Top achievements
Rank 1
answered on 12 Mar 2013, 12:03 PM
Thank you Petyo,

We removed the kendo.aspnetmvc javascript link and the actionsheet is now working.

Thx...Bob Baldwin
Trabon Group
Tags
ActionSheet
Asked by
Bob
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Bob
Top achievements
Rank 1
Share this question
or