MihaMarkic / BlazorDevExtreme

Blazor interop for DevExtreme library
MIT License
30 stars 5 forks source link

Using with ASP.net core 3, visual studio 2019 preview #27

Open smithgor opened 5 years ago

smithgor commented 5 years ago

Thanks for the work that's been done on this guys - it gives an instant boost to using devexpress on blazor while we wait for the native controls to come along.

I have been testing the fork produced by Sven5 as I've now moved on to VS 2019 and razor components (as they'll go to production first).

I created a razor components project (the standar App and Server project that VS 2019 produces) and linked in BlazorDevExtreme to the app project, added the devextreme items to index.htm and am trying to use just the datagrid page. I am getting a problem that I assume is to this separation (seen in the browser dev tools): SCRIPT5022: Could not find 'BlazorDevExtreme_DxDataGrid_Init' in 'window'. components.server.js (22,47598)

Sorry, I'm a bit new to this, but can anyone please give me some guidance on how I should combine BlazorDevExtreme with my code to get it to work? I'm assuming the above means it isn't finding registration.js?

Thanks in advance.

MihaMarkic commented 5 years ago

See #28

sven5 commented 5 years ago

@smithgor

Just giving some advice: Currently, with .net core 3.0 preview 3 you have to manually copy the registration.js to your razor components app and include the reference in index.html