Is it possible to add buttons to the Schedule control and event view

Hi,

Is it possible to add buttons to the scheduler?  As in the examples below









3 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team July 20, 2020 02:33 PM UTC

Hi Alex, 
 
Greetings from Syncfusion Support. 

We have validated your requirement “Is it possible to add buttons to the Schedule control and event view” at our side and prepared a sample based on that by making use of the custom editor window and DateHeaderTemplate like the below code snippet. 
 
<DateHeaderTemplate> 
    <div style="display: flex"> 
        <div class="date-text">@(getDateHeaderText((context as TemplateContext).Date))</div> 
        <div> 
            <button class="e-btn" @onclick="@SubmitButton1">Submit</button> 
        </div> 
    </div> 
</DateHeaderTemplate> 

<div style="display: flex"> 
    <div> 
        <button type="submit" class="e-btn">Save</button> 
    </div> 
    <div> 
        <button class="e-btn" @onclick="@SubmitButton2">Submit</button> 
    </div> 
</div> 

private void SubmitButton1() 
    Console.WriteLine("Submit button 1 clicked"); 

private void SubmitButton2() 
    Console.WriteLine("Submit button 2 clicked"); 
} 
 
 
Kindly try the above solution and let us know if this is helpful. 
 
Regards, 
Balasubramanian S

Marked as answer

AL Alex July 20, 2020 02:34 PM UTC

Will do - thanks guys, much appreciated!


VM Vengatesh Maniraj Syncfusion Team July 21, 2020 05:06 AM UTC

Hi Alex, 

You are most welcome. 

Please get in touch with us if you need any further assistance. 

Regards, 
Vengatesh  


Loader.
Up arrow icon