Mass edit special editor

StatusIDPriorityType
Closed27384MinorQuestion
ProfileReply
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.

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Client

Hello Muzzle,

Thanks for contacting us.
Could you please provide us with the following info?
1. Web or Win application version
2. an area of work with buttons:MassEdit

Best regards,
Sasha.

Muzzle DnmClient

Hello Sasha,

It's v15.2.7 Web application.
As for area of work with buttons, actually i want to customize both area 1 and area 2.

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.
This work will take some additional time.

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.
If you need any further assistance on this subject, please feel free to contact us.
Best regards, Sasha.

Muzzle DnmClient

That's exactly what i was looking for.
Thank you Sasha

× This ticket is closed.

Write US