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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Does Syncfusion Aspnet core support fluent API ?

Thread ID:

Created:

Updated:

Platform:

Replies:

131635 Jul 20,2017 01:33 PM UTC Jul 24,2017 12:43 PM UTC ASP.NET Core 3
loading
Tags: Button
liutzuyi
Asked On July 20, 2017 01:33 PM UTC

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

Berly Christopher [Syncfusion]
Replied On 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 


liutzuyi
Replied On July 21, 2017 09:29 PM UTC

Very clearly and understand, thanks !

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


Berly Christopher [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;