Articles in this section
Category / Section

How to prevent auto initialization of input controls in JavaScript TextBox?

1 min read

The script file ej.widgets.all.min.js is a combination of Essential Javascript for Web (ej.web.all.min.js) and Mobile (ej.mobile.all.min.js) components. In Mobile source, input controls are auto initialized on document ready for Essential Javascript Mobile applications, hence mobile styles have been applied. To prevent auto initialization, we need to set the property App.renderEJMControlsByDef as false. Refer to the following code example.

 

 
       <script>
            App.renderEJMControlsByDef = false;
       </script>

 

And also, additional container (div) element with a data-role “AppView” will be created on initialization, in which AppView acts as a master page for Mobile applications. To prevent the initialization of AppView, we need to set the property App.preventAppviewInit as true. Refer to the following code example

 

 
       <script>
            App.preventAppviewInit = true;
       </script>
 

 

The above mentioned code example has to be referred, next to ej.widgets.all.min.js script reference.

 

Note: The above mentioned properties has to be utilized, only when ej.widgets.all.min.js is referred, not in case of ej.web.all.min.js is referred.

 

Conclusion

I hope you enjoyed learning about how to prevent auto initialization of input controls in JavaScript TextBox.

You can refer to our JavaScript TextBox feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript TextBox example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied