Uncaught ReferenceError: tabCreated is not defined

Good day,
I want to create a wizard by inserting a new entry. I tried to create it by example (Tab - Wizard).

When you see a wizard page, the attempt ends with the "Uncaught ReferenceError: tabCreated is not defined" error.

Where am I making a mistake?

Thanks for help.

Attachment: AddAccessory_2510eca9.zip

3 Replies

BM Balaji M Syncfusion Team September 5, 2018 08:39 AM UTC

Hi Patrik 

Thanks for using Syncfusion Products. 

We have used your shared code and created sample.  But, unfortunately we were unable to reproduce your reported issue.  Tab created event is successfully triggered.  Please find the below sample with your shared code for your reference. 


Please also find the below video for your reference. 
    
Make sure the below steps are followed on your project for rendering components. 

After referring the above sample, if still face issues, could you please share the below details. 
-          Which version of ej2.min.js file are you using? 
-          Could  you please replicate your issue on the attached sample or else, please share your _layout.cshtml page or else please share video with your issue, so that we will check and provide the appropriate solution at earliest.  


Let us know if you have any queries. 

Regards, 
M. Balaji  



PV Patrik Volka September 5, 2018 03:29 PM UTC

Good day,
Unfortunately, I was unable to remove the error. I'm attaching a link to the project.

All packages are current.

Attachment: Video_Tab_Wizard_d99a5ad4.zip


BS Buvana Sathasivam Syncfusion Team September 6, 2018 04:56 PM UTC

Hi Patrik, 
  
Thanks for your update. 
  
We suspect that the cause of the issue is, script section is not referred properly on your view page(AddAccessory.cshtml).  So, we suggest you can define a section named ‘scripts’ using @section directive in the content views to include our Javascript functions.  That is, you can use script tag inside the @section directives.  Please find the below code for your reference. 
  
AddAccessory.cshtml 
  
@section scripts {   // You can refer all javascript function inside the @section directive 
    <script type="text/javascript" 
               function tabCreated() { 
              ………….. 
           } 
  </script> 
} 
  
We have faced some core problem when running your shared project.  You can try on above solution to your project.  If still facing a problem, you can get back to us with below details. 
  • Are you creating AddAccessory.cshtml page as a normal or partial view page?
  • Are you sending any ajax post for viewing AddAccessory.cshtml page?
  
Meanwhile, we will try to run your shared project.  
  
  
Regards, 
Buvana S 
 


Loader.
Up arrow icon