Hi, It is showing loading image constantly, not showing the data from database.
code is as below:-
this is Index.js file code. to load data in grid.
var _$FileTable = $('#FileTable'); // div where we add the grid.
_$FileTable.jtable({ title: app.localize('File Tracking'),
actions: {
listAction: {
method: _fileService.GetFiles
}
},
fields: {
id: {
key: true,
list: false
},
actions: {
title: app.localize('Actions'),
width: '30%',
display: function (data) {
var $span = $('<span></span>');
if (_permissions.edit) {
$('<button class="btn btn-default btn-xs" title="' + app.localize('Edit') + '"><i class="fa fa-edit"></i></button>')
.appendTo($span)
.click(function () {
_createOrEditModal.open({ id: data.record.id });
});
}
if (!data.record.isStatic && _permissions.delete) {
$('<button class="btn btn-default btn-xs" title="' + app.localize('Delete') + '"><i class="fa fa-trash-o"></i></button>')
.appendTo($span)
.click(function () {
deleteRole(data.record);
});
}
return $span;
}
},
displayName: {
title: app.localize('FileName'),
width: '35%',
display: function (data) {
var $span = $('<span></span>');
$span.append(data.record.FileName + " ");
return $span;
}
},
creationTime: {
title: app.localize('CreationTime'),
width: '35%',
display: function (data) {
return moment(data.record.CreateDate).format('L');
}
}
}
});
function getRoles() { _$FileTable.jtable('load'); }
getRoles();
FiletrackingAppservice.cs ( this is i am using to retireve data from database)
public ListResultDto<FileListDto> GetFiles(GetFileTrack input) { var files = _fileRepository .GetAll() .Include(p => p.User) .WhereIf( !input.Filter.IsNullOrEmpty(), p => p.FileName.Contains(input.Filter) || p.FilePath.Contains(input.Filter) || p.File_Status.Contains(input.Filter) ) .OrderBy(p => p.FileName) .ThenBy(p=>p.File_Status) .ToList();
return new ListResultDto<FileListDto>(files.MapTo<List<FileListDto>>());
}
Thanks
Hi,
I want to show data in jtable from database but not able to view data. i am able to retreive data from database but not able to show on browser, It stuck at loading bar.
i want to know what parameters we need to pass when calling the load method of jtable.
Thanks
Hi, I am working with ASPNET zero application. I have a full source code. i want full detailed features document which helps me to understand the process and all features of project. Please provide some document for this.
Thanks
Hi, Yes, now i got the mail and able to access pages.
Thanks Himanshu sharma
Hi, My github username is "hsharma89". i have recieved email from your side that i am invited to private repository. but when i try to download it shows error that this page doesn't exists. This is the link i am trying to access.
<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases/download/v1.10.0/metronic-v4.5.6.zip">https://github.com/aspnetzero/aspnet-ze ... v4.5.6.zip</a>
Thanks Himanshu sharma
Hi, I have sent you my github Username, but still permission is pending from your side. Please grant me permission so that i can process further with my project.
Thanks Himanshu sharma
Hi, i am looking into <a class="postlink" href="https://www.aspnetzero.com/Documents/Developing-Step-By-Step-MPA#authorization-for-phone-book">https://www.aspnetzero.com/Documents/De ... phone-book</a> this link to add authorization for page. i have added same as described in documnet but the permission is not showing in permission tree. what is the possible reason behind this issue.
code added in AppAuthorizationProvider.cs
var phoneBook = pages.CreateChildPermission(AppPermissions.Pages_Tenant_PhoneBook, L("PhoneBook"), multiTenancySides: MultiTenancySides.Tenant); phoneBook.CreateChildPermission(AppPermissions.Pages_Tenant_PhoneBook_CreatePerson, L("CreateNewPerson"), multiTenancySides: MultiTenancySides.Tenant);
In AppPermissions class.cs
public const string Pages_Tenant_PhoneBook = "Pages.Tenant.PhoneBook";
Thanks Himanshu sharma