ej.unobtrusive.min.js file in your application.
The ej.unobtrusive.min.js file can be accessed from the following location, which can then be copied and referred in your application.
data-role attribute in lowercase.
data-role type is enabled by default. Therefore, while making use of the data-role in control creation,
data-bold keyword should be prepended to all the properties that we need to define for a control.
The demonstration of such data-role declaration with a simple
ReportViewer control creation is shown below,
ej.unobtrusive.min.js file in your application along with the other script and CSS reference section and add the code for defining the ReportViewer control with the basic HTML mark-up tags along with its attributes defined with
data-bold keyword prepended as shown below,
<html> <head> ... <script src=http://cdn.boldreports.com/5.1.20/scripts/common/ej.unobtrusive.min.js></script> </head> <body> <!-- Report Viewer component script--> <div style="width:100%; height:60%; position:absolute;"> <div id="viewer" data-role="boldreportviewer" data-bold-processingmode='local' data-bold-enablenotificationbar='true' ></div> </div> </body> </html>
In the above code,
processingmodeis one of the
ReportViewerproperty to set the processing mode for the control, which is defined here with data-bold keyword prepended to it.