We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Always show add even button in header

Thread ID:

Created:

Updated:

Platform:

Replies:

148349 Oct 16,2019 07:23 AM UTC Oct 28,2019 04:34 AM UTC Angular - EJ 2 3
loading
Tags: Schedule
Hasan Rifaii
Asked On October 16, 2019 07:23 AM UTC

Hello, 

Add event button is displayed only if the page extra small. I don't know how to let it always displayed even on large screen.
Example :


Vinitha Devi Murugan [Syncfusion]
Replied On October 17, 2019 11:33 AM UTC

Hi Hasan, 
 
Syncfusion Greetings. 
 
We have achieved your requirement by using actionBegin event of the scheduler. Please refer below sample. 
 
 
    if (args.requestType === 'toolbarItemRendering') { 
      const exportItem: ItemModel = { 
        align: 'Right', showTextOn: 'Both', prefixIcon: 'e-icon-add', cssClass: 'e-add', click: this.onAddClick.bind(this) 
      }; 
      args.items.push(exportItem); 
    } 
  } 
  public onAddClick(): void { 
   this.scheduleObj.openEditor(this.scheduleObj.activeCellsData,'Add'); 
  } 
 
Regards, 
M.Vinitha devi 


Hasan Rifaii
Replied On October 27, 2019 02:48 PM UTC

It works.

Thank you

Vinitha Devi Murugan [Syncfusion]
Replied On October 28, 2019 04:34 AM UTC

Hi Hasan, 
 
We are happy to hear that our solution has fulfilled your requirement.  
 
Regards, 
M.Vinitha devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon