- Home
- Forum
- ASP.NET Core
- is Targetting 4.71 supported? ASP Core SignalR samples do not work
is Targetting 4.71 supported? ASP Core SignalR samples do not work
hello,
What SF versions/settings do we need to target .net 4.71 & which latest .net CLR runtime should we pick in web.conf
I could not find the 4.71 option in direct track incidents or nuget package targets. Is 4.71 supported, and if so which runtime should we pick 4.6 or 4.5 or is there a 4.7 to target.
https://blogs.msdn.microsoft.com/dotnet/2017/10/17/announcing-the-net-framework-4-7-1/
porting SF signarlR samples work in ASP Core release 2
when I tried to port the sample to SF core 2, SF grid this sample code did not work for me
thanks
What SF versions/settings do we need to target .net 4.71 & which latest .net CLR runtime should we pick in web.conf
I could not find the 4.71 option in direct track incidents or nuget package targets. Is 4.71 supported, and if so which runtime should we pick 4.6 or 4.5 or is there a 4.7 to target.
https://blogs.msdn.microsoft.com/dotnet/2017/10/17/announcing-the-net-framework-4-7-1/
porting SF signarlR samples work in ASP Core release 2
when I tried to port the sample to SF core 2, SF grid this sample code did not work for me
thanks
SIGN IN To post a reply.
1 Reply
BC
Berly Christopher
Syncfusion Team
December 21, 2017 01:56 PM UTC
Hi Megatron,
Thanks for contacting Syncfusion support.
Query 1:
What SF versions/settings do we need to target .net 4.71 & which latest .net CLR runtime should we pick in web.conf
I could not find the 4.71 option in direct track incidents or nuget package targets. Is 4.71 supported, and if so which runtime should we pick 4.6 or 4.5 or is there a 4.7 to target.
https://blogs.msdn.microsoft.com/dotnet/2017/10/17/announcing-the-net-framework-4-7-1/
https://blogs.msdn.microsoft.com/dotnet/2017/10/17/announcing-the-net-framework-4-7-1/
Answer:
We have checked with your query. We would like to let you know that our Syncfusion controls are redered properly by using .Net 4.7.1 framework in ASP.NET Core platform. By default, it picks 4.6 version assemblies for .Net 4.7 frame work.
To know more about how to render Syncfusion component in ASP.NET Core platform please refer the below Documentation link.
Query 2:
porting SF signarlR samples work in ASP Core release 2
when I tried to port the sample to SF core 2, SF grid this sample code did not work for me
when I tried to port the sample to SF core 2, SF grid this sample code did not work for me
Answer:
Based on your requirement we have prepared a sample in ASP.Net core 2.0 using SingalR with remoteSaveAdaptor and that can be downloaded from the below link
Refer the code example
|
<ej-grid id="Editing" allow-paging="true" action-complete="actionComplete" data-bound="dataBound" >
<e-datamanager json="(IEnumerable<object>)ViewBag.datasource" update-url="/Home/NormalUpdate" insert-url="/Home/NormalInsert" remove-url="/Home/NormalDelete"adaptor="remoteSaveAdaptor" />
...
<e-columns>
...
</e-columns>
</ej-grid>
<script type="text/javascript">
//mention the scripts that are used
$(function () {
$.getScript('https://ajax.aspnetcdn.com/ajax/signalr/jquery.signalr-1.1.4.min.js', function () {
$.getScript('http://js.syncfusion.com/ejservices/signalr/hubs', function () {
$.signalR.hub.url = 'http://js.syncfusion.com/ejservices/signalr';
window.signalr = $.signalR.scheduleHub;
window.signalr.client.modify = function (action, data) {
if (action == "delete") { //delete action
var gridObj = $("#Editing").ejGrid("instance");
var dm = ej.DataManager(gridObj.model.dataSource.dataSource.json);
var data = dm.executeLocal(ej.Query().where("OrderID", ej.FilterOperators.equal, data.OrderID))
}
if (action == "add") //add action
$("#Editing").ejGrid("addRecord", data);
else if (action == "beginedit") { //save action
$("#Editing").ejGrid("updateRecord", "OrderID", data);
}
else
$("#Editing").ejGrid("deleteRecord", "OrderID", data[0]);
};
$.signalR.hub.start({ jsonp: true }).done(function () {
window.actionComplete = function (args) {
if (args.requestType == "save" || args.requestType =="delete")
window.signalr.server.modify(args.requestType == "delete" ? args.requestType : window.previousAction, args.data);
if (args.requestType != "delete")
window.previousAction = args.requestType;
};
});
});
});
});
</script>
|
From the above code example, we have using remoteSaveAdaptor in grid with CRUD operation and used signalR.
Refer the documentation link
API link:
Please let us know if you need further assistance
Regards,
Berly B.C
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
ME Megatron
- Dec 18, 2017 09:47 PM UTC
- Dec 21, 2017 01:56 PM UTC