Status | ID | Priority | Type |
Closed | 27384 | Minor | Question |
Profile | Reply |
Muzzle DnmClient | For bulk editing, a special editor is used and displayed in a dock panel. Is there any way to customize this editor, i cant find a way to customize it ? (ex. hide mass edit mode, hide modify model, show close button, hide refresh button etc.). By the way, a video would be very helpful. Thanks. |
User | Description | Posted On |
Sasha (Xafari Support)Client | Hello Muzzle, Thanks for contacting us. Best regards, | |
Muzzle DnmClient | Hello Sasha, It's v15.2.7 Web application. In area 1, i want to show close button, collapse button, maximize button and pin button. The problem is close button does not appear, so i want to set ShowCloseButton property to true like in any other DockPanel but I could not find a way to change this property's value for bulk edit's dock panel in model editor. In area 2, i only want save button to be visible to users Thanks | |
Sasha (Xafari Support)Client | Hi, Thank you for the clarification. Best regards, Sasha. | |
Sasha (Xafari Support)Client | Hello, To solve this issue you can create a ViewController for your Web module and inherit it from XafariDockingWebWindowController and realise event DockPanelTemplateCreated: public partial class MassEditPanelViewController : XafariDockingWebWindowController { protected override void OnActivated() { base.OnActivated(); DockPanelTemplateCreated += MassEditPanelViewController_DockPanelTemplateCreated; }private const string PanelCaption = "Mass edit";void MassEditPanelViewController_DockPanelTemplateCreated(object sender, DockPanelItemEventArgs e) { // condition for the DockPanel if (e.DockPanelItem.Model.Caption != PanelCaption) return; var dockPanelModel = e.DockPanelItem.Model as IModelDockPanelWeb; if (dockPanelModel != null) dockPanelModel.ShowCloseButton = true;// condition for the view var viewCaption = e.DockPanelItem.Frame.View.Caption; if (viewCaption != PanelCaption) return;var frame = e.DockPanelItem.Frame; frame.GetController().ResetViewSettingsAction.Active.SetItemValue("ResetViewSettings", false); frame.GetController().RefreshAction.Active.SetItemValue("RefreshAction", false); frame.GetController().CancelAction.Active.SetItemValue("Cancel", false);protected override void OnDeactivated() { DockPanelTemplateCreated -= MassEditPanelViewController_DockPanelTemplateCreated; base.OnDeactivated(); } } Please inform us of your results. | |
Muzzle DnmClient | That's exactly what i was looking for. |