Hi Luca.
I have this .js (DashboardClient.js) in my project in order to use the DevEx dashboard:
// load JSZip.
var script = document.createElement('script');
script.src = "https://cdnjs.cloudflare.com/ajax/libs/jszip/2.6.0/jszip.min.js";
document.head.appendChild(script);
Could this be affecting the Reload in some way?
I’ve fixed the issue by not using a desktop directly but instead place a desktop control on a page. This fixed my problem 🙂
Really strange… it happened again, now inside the first setTimeout.
Image attached.
It’s very easy to do in Wisej. Send a zip with the svg or png icons.
You have to load one of the “dx.messages.{lang}.js” packages and call DevExpress.localization.locale(“{lang}”);
https://js.devexpress.com/Demos/WidgetsGallery/Demo/Localization/UsingIntl/jQuery/Light/
The wisej extension includes a bunch of languages already but a bug in the C# compiler prevents it to embed any file that has a dot and a two-letter language at the end. I have changed them to messages_{lang}.js and will update github. Also added the automatic selection using the culture set in Wisej default.json.
Thank you Luca.
I added your second advice to the script. Below is what you meant, right?
<!--
carregando...
-->
Wisej = Wisej || {}
var splash = document.getElementById("splash");
var loadingProgress = document.getElementById("loading-progress");
splash.style.opacity = 1;
setTimeout(function () {
loadingProgress.style.width = "100%";
loadingProgress.style.left = "0%";
setTimeout(function () {
loadingProgress.style.width = "0%";
loadingProgress.style.left = "100%";
}, 3000);
}, 1);
Wisej.onLoad = function () {
var splash = document.getElementById("splash");
splash.parentNode.removeChild(splash);
}
DevExtreme should be enough. For PDF export you need to call
DevExpress.pdfExporter.exportDataGrid({
jsPDFDocument: doc,
component: dataGrid
}).then(function() {
doc.save(‘Customers.pdf’);
});
See their docs.
In Wisej you can execute client side events using the ClientEvents collection on any widget. Or use Call() if you create your javascript function, or use Eval() to evaluate a script.
That means that for some reason the <script> tag is running before the script tag in the head which shouldn’t happen. Try to put Wisej.onLoad = inside the first setTimeout or add
Wisej = Wisej || {}
at the top of your script.
Hi mgmst,
Thanks for letting us know! I’ll fix the extension and update GitHub.
And yes you have the source code available to make any and all changes you need to the extension!
Best,
Levie
I just installed WiseJ 2.2 and I am getting the same error. I started a new project and all I wanted was to run it for the first time. Thanks in advance.
Here are the issues:
If you want to manage the tools collection by code add:
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public new ComponentToolCollection Tools
{
get => base.Tools;
}
I’ve fixed the issue. For some reason my server blocked acces to the resources folder. The suggestion of using the dev tools helped me figure it out.
Thanks for helping!
Hi Vincent
Thanks for report us this issue
Will be added to our backlog to fixit and will comment you when was released
regards
Im using 10. something.
I will have a look on how to register svg files. The server is newly setup for testing WiseJ and I do not really have much knowledge of IIS. For example, your documentation stated I should have a net 4.6 application pool but I cannot choose that version (only version 2/4). ofcourse I’ve installed .net framework 6.4.2 and everything else works just fine.
What version of IIS?
You may need to register the SVG mimetype.
Best regards
Frank
Using VB.NET and changed the build action / copy to output directory to match the png files. But its not working.
Did you try changing the Build Action / Copy to Output Directory of your resource?
Best regards
Frank
When running in local debug it works fine. When publishing (release) to a folder and then manually copying it to a remote iis server it doesn’t work.
Hi Vincent,
are you using VB.NET or C#?
“Publishing/Debugging” means running on localhost from Visual Studio or deploying to an IIS?
Can you please wrap up a small test case for us?
Best regards
Frank
This works like a charm! I do have to test it on a mobile but for desktops it works!
Dim DevExpressReport As New NotificationReport
DevExpressReport.CreateDocument()
Dim tempStream As New IO.MemoryStream
DevExpressReport.ExportToPdf(tempStream, Nothing)
Dim PdfViewerDialog As New Report
With PdfViewerDialog
.PdfViewer1.PdfStream = tempStream
.ShowDialog()
End With
PdfViewerDialog.Dispose()
