xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-reportdesigner-dot-reportdesignerclientsideeventsbuilder-dot-tabchanged-x28-system-dot-string-x29.md
Sets the name of the JavaScript function or the entire code that will handle the Web Report Designer’s TabChanged client-side event.
Namespace : DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly : DevExpress.AspNetCore.Reporting.v25.2.dll
NuGet Package : DevExpress.AspNetCore.Reporting
public ReportDesignerClientSideEventsBuilder TabChanged(
string callback
)
Public Function TabChanged(
callback As String
) As ReportDesignerClientSideEventsBuilder
| Name | Type | Description |
|---|---|---|
| callback | String |
The name of a JavaScript function or the entire JavaScript function code used to handle the TabChanged event.
|
| Type | Description |
|---|---|
| ReportDesignerClientSideEventsBuilder |
A ReportDesignerClientSideEventsBuilder that can be used to further configure the Report Designer’s client-side events.
|
The TabChanged event enables you to respond to changing the currently active tab in the Web Report Designer.
The following example demonstrates how to use this event to show an information message about switching to another tab.
@{
var designer = Html.DevExpress().ReportDesigner("reportDesigner1").Height("1000px")
.Bind(Model.Report)
.DataSources(configureDS => { foreach (var ds in Model.DataSources) { configureDS.Add(ds.Key, ds.Value); } })
.ClientSideEvents(configure => { configure.TabChaged("TabChaged"); });
}
@designer
<script type="text/javascript">
function TabChaged(s, e) {
alert("The tab was changed to " + e.Tab.displayName());
}
</script>
See Also
ReportDesignerClientSideEventsBuilder Class