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. Image for the cookie policy date

Always show add even button in header

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 :


3 Replies

VD Vinitha Devi Murugan Syncfusion Team October 17, 2019 06:33 AM

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 



HR Hasan Rifaii October 27, 2019 09:48 AM

It works.

Thank you


VD Vinitha Devi Murugan Syncfusion Team October 27, 2019 11:34 PM

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


Loader.
Live Chat Icon For mobile
Up arrow icon