Question

Is there a way to remove the Open, Copy and Delete buttons From calendar view

Hi Team,

 

I tried to remove the Open,copy and Delete Buttons by making the below function empty. But the whole calendar view is empty if i try to do that

 

isSchedulerDataView:Terrasoft.emptyfn --- this method is linked to the whole calendar view itself

 

Am i going wrong somewhere ? kindly help me with the same. From the below diff i identified the method

{

                    "operation": "insert",

                    "name": "OpenButton",

                    "parentName": "SeparateModeActionButtonsLeftContainer",

                    "propertyName": "items",

                    "values": {

                        "itemType": Terrasoft.ViewItemType.BUTTON,

                        "caption": {"bindTo": "Resources.Strings.OpenButtonCaption"},

                        "classes": {

                            "textClass": ["actions-button-margin-right"]

                        },

                        "visible": {

                            "bindTo": "isSchedulerDataView"

                        },

                        "enabled": {"bindTo": "getSchedulerButtonsEnabled"},

                        "click": {"bindTo": "openItem"}

                    }

                },

Like 0

Like

3 comments

Hello Sri,

 

Please check this Community Post, it contains an example of how to resolve your business task.

 

Best regards,

Bogdan

Bogdan Spasibov,

Hi Bogdan,

 

I tried the above solution. It is working for normal section. SInce this is a calendar page is there any alternative?

Sri Saranya,

 

Try the following approach and use the "remove" operation:

diff: /**SCHEMA_DIFF*/[
	{
		"operation": "remove",
		"name": "CopyButton"
	},
	{
		"operation": "remove",
		"name": "DeleteButton"
	},
	{
		"operation": "remove",
		"name": "OpenButton"
	}
}

Best regards,

Bogdan S.

Show all comments