Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
pollyndos committed Jul 4, 2022
1 parent ba2050e commit 05741d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CS/ASPxDashboard_ClientData/Default.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div id="myPopup"></div>
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server"
WorkingMode="Viewer" Width="100%" Height="100%" DashboardStorageFolder = "~/App_Data/Dashboards">
<ClientSideEvents BeforeRender="onBeforeRender" Init="initPopup" />
<ClientSideEvents BeforeRender="onBeforeRender"/>
</dx:ASPxDashboard>
</form>
</body>
Expand Down
14 changes: 6 additions & 8 deletions CS/ASPxDashboard_ClientData/Scripts/ClientData.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ function onBeforeRender(sender) {
var viewerApiExtension = dashboardControl.findExtension('viewerApi');
if (viewerApiExtension)
viewerApiExtension.on('itemClick', onItemClick);

$("#myPopup").dxPopup({
width: 800, height: 600,
title: "Details",
showCloseButton: true
});
}

function onItemClick(args) {
Expand Down Expand Up @@ -71,11 +77,3 @@ function onItemClick(args) {
popup.show();
};
}

function initPopup(sender) {
$("#myPopup").dxPopup({
width: 800, height: 600,
title: "Details",
showCloseButton: true
});
}

0 comments on commit 05741d9

Please sign in to comment.