So I am trying to get this code to work in my MVC4 test app.
http://help.infragistics.com/Help/Doc/jQuery/2013.1/CLR4.0/HTML/igRating_Overview.html
My project is blank with the exception of the coding.
When I click on the debug setting, I get this error.
"0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'igRating'"
If I click on the "continue" button, the app will continue on to the Index page where it will display the rating bar.
Can someone clue me in on what I could be missing that would cause this error?
Hi Ryan Coleman,
This error is displayed if the rating js files are not loaded yet. If you try to instantiate the widget before the scripts are loaded it breaks. And if you have more than one ratings once it breaks, meanwhile the scripts are loaded and the next rating components get rendered correctly.
Thanks,
Hello Ryan,
Thank you for posting in the Infragistics forum!
I have prepared a sample demonstrating the usage of the igRating control within MVC project. You might be also interested in reading through the following resources:
- https://www.igniteui.com/rating/basic-usage
- https://www.igniteui.com/help/api/2013.2/mobile.igRating
Attached is the sample for your reference. Feel free to modify it and use it for you projects if needed.
If you have any additional questions feel free to contact us again.
[quote user="[Infragistics] Dimka"]
Thank you for the attached zip example. This was perfect for me as it showed me where I was going wrong.
I am glad to hear this works for you. If any additional questions arise don’t hesitate to update this thread.