Editor template standard dialogue

I would like to add a single field to the editor template. 
In the demo there is an example for this but it does not look like the standard dialogue. 
Do I have to completely rebuild the standard dialogue myself or is there already code present?


Desired result in EditorTemplate


3 Replies 1 reply marked as answer

AK Alagumeena Kalaiselvan Syncfusion Team July 6, 2020 02:25 PM UTC

Hi Kevin, 

Thanks for contacting Syncfusion support. 

We checked your reported case “standard dialogue using editor template” and we prepared a Scheduler sample using editor template which is similar to the shared editor window snapshot. Also, you can download this sample using the following link. 

Kindly check with shared sample and let us know, if you need further assistance. 
Regards 
Alagumeena.K 



KE Kevin July 15, 2020 11:57 AM UTC

Hi Kalaiselvan,

I've updated to version 18.2.0.45.
Now the code for the allday checkbox gives an error.

Current code

     protected SfCheckBox AllDayRef;
     <SfCheckBox @ref="AllDayRef" @bind-Checked="IsAllDay" ValueChange="OnAllDayChange"></SfCheckBox>
        
     protected void OnAllDayChange(Syncfusion.Blazor.Buttons.ChangeEventArgs args)
     {
     }

For the code behind to work I've changed 

  protected SfCheckBox AllDayRef; 
  to
  protected SfCheckBox<Boolean> AllDayRef;

and 

  OnAllDayChange(Syncfusion.Blazor.Buttons.ChangeEventArgs args)
  to
  protected void OnAllDayChange(Syncfusion.Blazor.Buttons.ChangeEventArgs<Boolean> args)
  

Could you provide me the correct syntax for the razor markup?

  <SfCheckBox @ref="AllDayRef" @bind-Checked="IsAllDay" ValueChange="OnAllDayChange"></SfCheckBox>



NR Nevitha Ravi Syncfusion Team July 15, 2020 03:35 PM UTC

Hi Kevin, 
 
Thanks for your update. 
 
The issue is due to breaking changes in CheckBox component. You can resolve it by adding TChecked as below. 
 
<SfCheckBox TChecked="Boolean" @ref="AllDayRef" @bind-Checked="IsAllDay" ValueChange="OnAllDayChange"></SfCheckBox> 
 

Let us know if you need any further assistance. 

Regards, 
Nevitha. 


Marked as answer
Loader.
Up arrow icon