Pop-up webapp dialog with additional device info

On server side prepare device information data from z-push webservice response.
On client side prepare dialog to show addition device information on row double click.
This commit is contained in:
csoni
2016-12-06 11:22:40 +05:30
committed by Chintan.kukadiya
parent edd376b5b8
commit b1e0b39c8e
8 changed files with 440 additions and 24 deletions

View File

@ -87,7 +87,11 @@ Zarafa.plugins.mdm.settings.MDMSettingsWidget = Ext.extend(Zarafa.settings.ui.Se
ref : '../../../refresh',
handler : this.onRefresh,
scope : this
}]
}],
listeners : {
rowdblclick: this.onRowDblClick,
scope : this
}
}]
}]
});
@ -192,6 +196,21 @@ Zarafa.plugins.mdm.settings.MDMSettingsWidget = Ext.extend(Zarafa.settings.ui.Se
onRefresh : function()
{
this.deviceGrid.getStore().load();
},
/**
* Function is called if a row in the grid gets double clicked.
* Which is use to show a dialog with detail device information
* @param {Ext.grid.GridPanel} grid The Grid on which the user double-clicked
* @param {Number} rowIndex The Row number on which was double-clicked.
*/
onRowDblClick : function (grid, rowIndex)
{
var record = grid.getStore().getAt(rowIndex);
Zarafa.core.data.UIFactory.openLayerComponent(Zarafa.core.data.SharedComponentType['mdm.dialog.mdmdevicedetails'], undefined, {
manager : Ext.WindowMgr,
record : record
});
}
});