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.
Unfortunately, activation email could not send to your email. Please try again.

Auto upgrade utility needed: Migrate old Views from MVC synfusion controls to new CORE Syncfusion Tag-helpers

Thread ID:

Created:

Updated:

Platform:

Replies:

127539 Nov 21,2016 11:42 PM Nov 24,2016 07:18 AM ASP.NET Core 3
loading
Tags: DatePicker
Megatron
Asked On November 21, 2016 11:42 PM

Hello, I would like to suggest a utility for the Syncfusion developer community

I am upgrading my project to CORE, using Syncfusion Control tag-helpers (but I keep missing the options). This is mainly because - the intellisense from fluent chaining syntax @SfGrid().Col()... is now gone!


Can you please plan a syncfusion utility to migrate views that that have


                                                      @(Html.EJ().Grid<obj>("grd").Datasource((IEnumerable<obj>)ViewBag.records).IsResponsive()
old syncfusion MVC view syntax @SyncfusionControl().ColName..()... <=> to the new </e-....> //syntax 


Thanks
Mega

Mani Sankar Durai [Syncfusion]
Replied On November 23, 2016 06:22 AM

Hi Megatron, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and we have prepared a sample based on your requirement and the same can downloaded from the below link. 


In the sample we have rendered the grid control using HTML Helpers instead of using Tag Helpers. 
Please refer the below code example. 
@{Html.EJ().Grid<object>("Grid") 
                                  .Datasource(ds => ds.Json(ViewBag.data)) 
                                  .AllowPaging() 
                                  .Columns(col => 
                                  { 
                                      col.Field("EmployeeID").HeaderText("EmployeeID").TextAlign(TextAlign.Left).Add(); 
                                      col.Field("CustomerID").HeaderText("CustomerID").TextAlign(TextAlign.Left).Add(); 
                                  }).Render(); 
}   
 

From the above code example we have rendered the grid in asp.net core. To render the Grid control, it is must to give .Render() in the view page.

 
Please let us know if you need further assistance. 

Regards, 
Manisankar Durai. 


Megatron
Replied On November 23, 2016 05:40 PM

Hi its good to know .Render will help, but not quite what I was asking.

Because find and replace is not easy when going from MVC 5 to MVC 6, there are many attibute and syntax changes. I was asking to see if there could be an upgrade utility from Syncfusion to parse old Razor view and replace with new CORE TAG HELPER syntax.

thanks

Manikandan Mariappan [Syncfusion]
Replied On November 24, 2016 07:18 AM

Hi Megatron, 
 
We have checked with your query and created a new incident under your account to track the status of the feature reported in this forum. Please log on to our support website to check for further updates. 
 
Manikandan Mariappan

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.

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.

;