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 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 



HR Hasan Rifaii October 27, 2019 02:48 PM UTC

It works.

Thank you


VD Vinitha Devi Murugan Syncfusion Team 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 


Loader.
Up arrow icon