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

Does Syncfusion Aspnet core support fluent API ?

Hi :
1.
If  I want create a button at razor page, I can use TagHelper
<ej-button id="button_imageOnly" text="login" show-rounded-corner="true" content-type="ImageOnly" prefix-icon="e-icon e-handup" />


Can I  use fluent API ?
@Html.EJ().Button("button1").Text("SyncFusion") 
because when I render the page, it will return

Syncfusion.JavaScript.ButtonPropertiesBuilder 
 
string only, not a button

2. Can syncfusion TagHelper support intelliSense ?


Attachment: useSyncfusion_57738593.zip

3 Replies

BC Berly Christopher Syncfusion Team July 21, 2017 01:20 PM UTC

Hi liutzuyi, 
  
Thanks for contacting Syncfusion support. 
  
Query1: 
If  I want create a button at razor page, I can use TagHelper 
<ej-button id="button_imageOnly" text="login" show-rounded-corner="true" content-type="ImageOnly" prefix-icon="e-icon e-handup" /> 
 
 
Can I  use fluent API ? 
@Html.EJ().Button("button1").Text("SyncFusion")  
because when I render the page, it will return 
 
Syncfusion.JavaScript.ButtonPropertiesBuilder  
  
string only, not a button 
 
Answer: 
We have checked with your query. Specified format (“@Html.EJ().Button("button1").Text("SyncFusion")”) in the query is used to render the Button component in ASP.Net MVC platform. We suggest you to use below code example to render button component in ASP.NET Core platform.  
 
 
@{ Html.EJ().Button("button").Width("180px").Text("Sample").Render();} 
 
Query2: 
Can syncfusion TagHelper support intelliSense ? 
Answer: 
We would like to let you know that this is known issue with ASP.NET core in Visual Studio 2017. Please refer the below link:  
So please make use suggested extension (Razor Language Extension) to resolve the reported issue. 
If you are using any other version of Visual studio, please provide more details that will help us to provide exact solution. 
 
Regards, 
Berly B.C 



LI liutzuyi July 21, 2017 09:29 PM UTC

Very clearly and understand, thanks !

But your document about ASPNET Core MVC maybe write more detail !!



BC Berly Christopher Syncfusion Team July 24, 2017 12:43 PM UTC

Hi liutzuyi, 
Thanks for your suggestion. We will consider your suggestion and update the UG documentation for ASP.NET MVC and Core with more details. 
Regards, 
Berly B.C 


Loader.
Live Chat Icon For mobile
Up arrow icon