enum
Shows or hides the create, edit, and delete options for embedded and shared dataset from dataset pane with the help of ej.ReportDesigner.Permission
enum.
Name | Description |
---|---|
Create | Shows or hides embedded dataset option in dataset pane |
Edit | Shows or hides the edit option in dataset pane |
Delete | Shows or hides the delete option in dataset pane |
Shared | Shows or hides the shared dataset option in dataset pane |
All | Shows all the options in dataset pane |
Defaults to ej.ReportDesigner.Permission.All
Example
Show all options in dataset pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSet: ej.ReportDesigner.Permission.All }
});
</script>
Hide all options in dataset pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSet: ~ej.ReportDesigner.Permission.All }
});
</script>
Hide embedded dataset Create option from dataset pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSet: ej.ReportDesigner.Permission.All & ~ej.ReportDesigner.Permission.Create}
});
</script>
Hide all items except embedded dataset Create option from dataset pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSet: ej.ReportDesigner.Permission.All & ~ej.ReportDesigner.Permission.Edit & ~ej.ReportDesigner.Permission.Delete & ~ej.ReportDesigner.Permission.Shared}
});
</script>
Hide shared dataset option from dataset pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSet: ej.ReportDesigner.Permission.All & ~ej.ReportDesigner.Permission.Shared}
});
</script>
enum
Shows or hides the create, edit, and delete options for embedded and shared data source from data source pane with the help of ej.ReportDesigner.Permission
enum
Name | Description |
---|---|
Create | Shows or hides embedded data source option in data source pane |
Edit | Shows or hides the edit option in data source pane |
Delete | Shows or hides the delete option in data source pane |
Shared | Shows or hides the shared data source option in data source pane |
All | Shows all the options in data source pane |
Defaults to ej.ReportDesigner.Permission.All
Example
Show all options in data source pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSource: ej.ReportDesigner.Permission.All }
});
</script>
Hide all options in data source pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSource: ~ej.ReportDesigner.Permission.All }
});
</script>
Hide embedded data source Create option from data source pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSource: ej.ReportDesigner.Permission.All & ~ej.ReportDesigner.Permission.Create}
});
</script>
Hide all items except embedded data source Create option from data source pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSource: ej.ReportDesigner.Permission.All & ~ej.ReportDesigner.Permission.Edit & ~ej.ReportDesigner.Permission.Delete & ~ej.ReportDesigner.Permission.Shared}
});
</script>
Hide shared data source option from data source pane.
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
permissionSettings: { dataSource: ej.ReportDesigner.Permission.All & ~ej.ReportDesigner.Permission.Shared}
});
</script>