Base solution for your next web application

Activities of "[email protected]"

We are having a strange problem using ASP.NET Zero version 5.1 (MVC Core+JQuery, framework .NET Standard). When we try to add a member to an existing organizational unit from the popup, the checked users are not detected by the "Add User" JS handler and all the users are passed to the service. It's strange because we didn't change this specific part of your code. I tried an older version of ASP.NET Zero (4.6) and the same code works just fine; the only difference I have spotted is the Datables.js library.

Here are more details: (in _AddMemberModal.js): _modalManager.getModal().find('#btnAddUsersToOrganization').click(function () { _modalManager.setResult(dataTable.rows({ selected: true }).data().toArray()); _modalManager.close(); });

(in OrganizationUnitAppService): [AbpAuthorize(AppPermissions.Pages_Administration_OrganizationUnits_ManageMembers)] public async Task AddUsersToOrganizationUnit(UsersToOrganizationUnitInput input) { foreach (var userId in input.UserIds) { await UserManager.AddToOrganizationUnitAsync(userId, input.OrganizationUnitId); } }

If I run the code with ASP.NET Zero 5.1 the "selected: true" filter of the dataTable.Rows collection is not working; I always get the whole collection in the UsersToOrganizationUnitInput object on the server side. If I don't check any user, I always get the full list of user ids shown on the grid page.

If I run it with ASP.NET Zero 4.6 the "selected: true" filter of the dataTable.Rows collection is working OK; I get the actual list of selected items on the server side; if I don't check any user, I get an empty list as expected.

This is very strange and I already spent some time trying to figure it.

Can you please help ?

Thanks, David

We have purchased a license of ASP.NET Zero. I am trying to download the sample PhoneBook application from <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-samples">https://github.com/aspnetzero/aspnet-zero-samples</a> but I cannot find it.

Can you please give me an updated link for the sample repository ?

Thanks, David

Showing 1 to 2 of 2 entries