Base solution for your next web application

Activities of "PhilWynn"

Question

I have just managed to get my AspNet Zero built and running for the first time. I am finding that all my jTable grids are displaying separate action buttons in the left column rather than a singe dropdown button. Is there a setting for this. I am running MVC5 jquery.

Regards

Answer

Hi,

I can do this. What I don't understand though, is that all the screen shots I see in the Development Guide (e.g. User Management section) have the single dropdown button. Is this a mistake in the documentation?

Regards

Answer

Okay, thank you.

Hi

I have just downloaded v4 Core and successfully built. However, when I attempt to create the database via entity framework, I am getting the following error:

Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design' or one of its dependencies. The system cannot find the file specified.

Please advise.

Yes, the problem turned out to be the StartUp Project selection.

Thank you.

Answer

Yes, I am now seeing this.

Thank you.

Question

Hi, I have successfully integrated the Kendo grid into aspnet zero. Now I would like to be able to handle ajax errors consistently with the rest of the application. Please could you tell me how I could invoke the standard abp ajax error dialog from within my javascript. I am successfully catching server side errors here, and am simply looking for the best way to report them.

Thank you

Answer

Hi,

I am using the current MVC5 jQuery version. I do indeed apply the [DontWrapResult] attribute to my action methods to get this working. Kendo automatically calls the ajax methods required and I am therefore unable to use abp.ajax . However, I would really like to maintain consistency in the way I handle ajax errors.

The code below shows how I use Kendo to set up a datasource. Where I have the TODO comment, I would like to be able to invoke the standard abp ajax error dialog:

function buildDataSource() {
            return new kendo.data.DataSource({
                type: "aspnetmvc-ajax",
                transport: {
                    read: {
                        url: "/Users/GetUsers",
                        data: {
                            filterText: $('#UsersTableFilter').val()
                        }
                    }
                },
                schema: {
                    data: 'data',
                    total: 'total',
                    errors: 'error'
                },
                error: function (e) {
                    //TODO
                    //alert(e.errors.message); 
                },
                pageSize: 10,
                serverPaging: true,
                serverSorting: true
            });
        }
Answer

Thanks, that was what I was looking for.

Is the javascript API documented anywhere?

Answer

Fantastic. Thanks for the help..

Showing 1 to 10 of 110 entries