All Answers

0 votes

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?

0 votes

I’ve fixed the issue by not using a desktop directly but instead place a desktop control on a page. This fixed my problem 🙂

  • Vincent answered Apr 20, 2021 - 12:51 pm
0 votes

Really strange… it happened again, now inside the first setTimeout.
Image attached.

0 votes
In reply to: Nice listview

It’s very easy to do in Wisej. Send a zip with the svg or png icons.

  • Luca answered Apr 19, 2021 - 5:13 pm
0 votes

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.

  • Luca answered Apr 19, 2021 - 4:27 pm
0 votes

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); }
  • Ivan Borges answered Apr 19, 2021 - 4:08 pm
  • last active Apr 19, 2021 - 4:09 pm
0 votes

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.

  • Luca answered Apr 19, 2021 - 3:41 pm
0 votes

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.

  • Luca answered Apr 19, 2021 - 3:35 pm
0 votes

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

0 votes

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.

  • Edwin answered Apr 15, 2021 - 10:16 pm
0 votes

Here are the issues:

 

  1. You have DefaultValue(true) but the initial value is false.  It will not match and the property is serialized.
  2. When you add a tool by code after the designer is loaded the collection is different and therefore serialized, which is correct.
  3. The code in HandleClearToolState uses Add() instead of Insert() so the clear X will sometime be in front of the menu and sometimes after.

If you want to manage the tools collection by code add:

 [Browsable(false)]
 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 public new ComponentToolCollection Tools
 {
   get => base.Tools;
 }

 

  • Luca answered Apr 15, 2021 - 6:41 pm
0 votes

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!

 

  • Vincent answered Apr 15, 2021 - 5:46 pm
0 votes

Hi Vincent

Thanks for report us this issue

Will be added to our backlog to fixit and will comment you when was released

regards

  • Paul answered Apr 15, 2021 - 3:00 pm
0 votes

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.

  • Vincent answered Apr 15, 2021 - 1:05 pm
0 votes

What version of IIS?
You may need to register the SVG mimetype.

Best regards
Frank

0 votes

Using VB.NET and changed the build action / copy to output directory to match the png files. But its not working.

 

  • Vincent answered Apr 15, 2021 - 10:14 am
0 votes

Did you try changing the Build Action / Copy to Output Directory of your resource?

Best regards
Frank

0 votes

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.

 

  • Vincent answered Apr 15, 2021 - 9:03 am
0 votes

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

0 votes

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()


 

  • Vincent answered Apr 14, 2021 - 3:20 pm
Showing 3861 - 3880 of 11k results