All Answers

0 votes

I am calling this (after button “Export to PDF is clicked”):

Public Function FExportToPF() As Boolean

Me.Eval(”
window.jsPDF = window.jspdf.jsPDF;
applyPlugin(window.jsPDF);

const doc = new jsPDF();
DevExpress.pdfExporter.exportDataGrid({
jsPDFDocument: doc,
component: dataGrid
}).then(function() {
doc.save(‘Customers.pdf’);
});

“)
Return True
End Function

 

And it returns: Cannost read property ‘exportDataGrid’ of undefined

  • mgmst answered May 3, 2021 - 6:57 pm
  • last active May 3, 2021 - 7:02 pm
0 votes

I don’t know what you are calling. I tried with the tests and it works. It’s not possible that it’s not defined if the widget loaded.

  • Luca answered May 3, 2021 - 6:43 pm
0 votes

“If you want to use the DevExpress namespace you have to wait for it to load. ”

I have export to PDF button for the DXGrid widget. Which button I may click long after the widget is loaded and initialized. But still DevExpress namespace do not works in PDF export JS. It says DevExpress not defined.

  • mgmst answered May 3, 2021 - 6:40 pm
0 votes

To remove the editable widget set InitScript to this.getChildControl(“textfield”).exclude();

Using Text.Split() is the correct way. Tags in a text box are just a way to show the text. It’s not a collection of panels or objects. For that you can simply use FlowLayoutPanel and stack panels.

If you need to “inject” complex data into the text you can also do that with the TagTextBox by handling the TagRender event. For example, of the text is ‘{id:1,text:”Hello”};{id:2,text:”World”}’ then you can either override OnTagRender or handle the TagRender event and display only Hellp and World. You can also set the colors or use complex HTML. See the demo app as an example. The args object for the TagRender event has the properties you need.

  • Luca answered May 3, 2021 - 6:25 pm
0 votes

For the Label position don’t use Inside it conflicts with the inner composition. Top works fine. Will log the issue with Inside. The tool button is correct too. The problem at design time is that you added several tags in the text causing the inner TagTextBox to grow vertically but the designer cannot get the runtime client events back and you’d have to set AutoSize to false and resize by hand if you want to see the Text. Or set the Text to “” or to shorter text that doesn’t cause the wrapping.

  • Luca answered May 3, 2021 - 6:16 pm
0 votes

If you add the library to the Default.html you have to remove it from the widget packages. Cannot load the same js twice. And if you do it directly (by adding to Default.html) as you would do using devexpress directly then you have to load all the nevessary css, js (including the localization js).

If you download the code from https://github.com/iceteagroup/Wisej-Ext-DevExtreme you will get the built-in localization support and there is no need to load the library again. Just set Application.CultureInfo =  (the culture you want to use). Or set the culture in default.json, or keep it set to “auto” to use the browser culture.

If you want to use the DevExpress namespace you have to wait for it to load. You get the Load event in the Widget class. However, changing the locale won’t change anything unless you reload/rebuild the widget. This is how all third part widgets work,  they can’t update dynamically like wisej widgets do.

Is the issue that you want to use 2 cultures at the same time?

  • Luca answered May 3, 2021 - 6:09 pm
0 votes

Hi
Another option you can use, is the shape control
With it, you can play with BorderStyle* and Rotation properties

Please, see the atached image

We hope to will help you

Regards and happy coding

 

  • Paul answered May 3, 2021 - 4:55 pm
0 votes
In reply to: NFC

You cannot use NFC using JavaScript, you can only do it with a native app. Wisej supports hybrid apps (mix between native and web). You can use the free Apache Cordova and its myriad extensions with Wisej as you would with any javascript code. The learning curve can be steep but it’s outside of the Wisej scope.

We provide our own native integration package, actually two: one written in SWIFT and the other in Android Studio. They are tailored to work with Wisej in a very tight way (we can even turn on  the light of a user phone from the web server, can use face id, etc.) However, the apps are available to Technology Partners.

If you are interested, contact us and we’ll provide you with all the information you need, including a demo you can try on your phone.

 

  • Luca answered May 3, 2021 - 3:12 pm
0 votes
In reply to: Question about Timers

Sorry for the delay. We will send you a sample with 3 different approaches in Wisej shortly, including the same (but better) as VWG.

 

 

  • Luca answered May 3, 2021 - 3:05 pm
0 votes

Hi thanks for write us

The feature that you ask, can do it with the extender control “Rotation”
This wisej control add extend capabilities to rotate to any control that you have in a container.

I adjunt an example image

Regards

 

  • Paul answered May 3, 2021 - 3:03 pm
0 votes
Hi again,
I added dx.all.js like this: (please see the code below)

But I received an error like this:

Uncaught Error: E0024 – DevExtreme bundle already included. See:
It seems that added dx.all.js is in the conflict with the same library in the integration module Wisej.Web.Ext.DevExtreme.dll.
I really need to solve this conflict. Without “DevExpress” name space I can do with the grid almost nothing.
Thank you!
I added dx.all.js like this:
<!DOCTYPE html>
<html>
<head>
<title>MyProject</title>
<meta charset=”utf-8″ />
<meta http-equiv=”X-UA-Compatible” content=”IE=Edge;IE=11″ /><script type=”text/javascript” src=”/Resources/js/DevExpress/Basics/dx.all.js”></script>
<script src=”wisej.wx”></script>

</head>
<body>

</body>
</html>

But I received an error like this:

Uncaught Error: E0024 – DevExtreme bundle already included. See:
http://js.devexpress.com/error/19_2/E0024
at c (dx.all.js?v=637554897221964840:20)
at Object.Error (dx.all.js?v=637554897221964840:20)
at Object.<anonymous> (dx.all.js?v=637554897221964840:21)
at t (dx.all.js?v=637554897221964840:9)
at Object.<anonymous> (dx.all.js?v=637554897221964840:25)
at t (dx.all.js?v=637554897221964840:9)
at Object.<anonymous> (dx.all.js?v=637554897221964840:77)
at t (dx.all.js?v=637554897221964840:9)
at Object.<anonymous> (dx.all.js?v=637554897221964840:129)
at t (dx.all.js?v=637554897221964840:9)
  • mgmst answered May 3, 2021 - 5:54 am
  • last active May 3, 2021 - 5:55 am
0 votes

This works for checkbox:

public class CheckBoxYN : Wisej.Web.CheckBox

    {

        public string YesNo

        {

            get

            {

                if (this.Checked)

                    return “Y”;

                else

                    return “N”;

            }

            set

            {

                if (value == “Y”)

                    this.Checked = true;

                else

                    this.Checked = false;

            }

        }

    }

and then in page/control/window where you are using this control you need to set databinding to it using:

this.chkExtenede.DataBindings.Add(“YesNo”, <binding source name>, <field to bind to name>);

  • Dino Novak answered May 2, 2021 - 3:04 pm
  • last active May 2, 2021 - 3:05 pm
0 votes

Found my way searching the forum.
It worked like a charm.

Thank you!

0 votes

Hey Luca.

Thank you.

What is this “block with an accelerator” ?

0 votes

There is no way.  The fullscreen api only works programmatically. All the entries you see in stackoverflow are old and either never worked or don’t work anymore. F11 is not detected at all. You can try to block F11 with an accelerator in Wisej.

  • Luca answered Apr 30, 2021 - 9:40 pm
0 votes

You are using Wisej.HostService.exe for Wisej 1.5. See attachments. I switched it with the same exe for Wisej 2.2 and it works fine.

https://github.com/iceteagroup/wisej-extensions

Additionally, you can also use the Wisej.Application.exe (which is similar and better than Electron) to run the Wisej app as a desktop app. You have 4 flavors: IE, Edge, FireFox and Chrome. I have also attached a screenshot of the Wisej.Application.exe with Chrome running your test app. Since we give the source code, you can change the frame as much as you like. You can also change the first ajax loader icon but putting a file named either { “splash.png”, “splash.gif”, “splash.jpg” } in the root. You can add any winforms control to the frame as well. It’s a sort of hybrid app.

  • Luca answered Apr 30, 2021 - 5:08 pm
0 votes
In reply to: Content control name

Hi Dino,

It’s a TabControl with a custom appearance.

You can play around with the ThemeBuilder to get a similar look (see attached screenshot using Material theme as the base).

Best,

Levie

0 votes

Made an clean new Project. Same Error.

I have to make an huge mistake but i don`t get it.

Here is the ZIP: https://1drv.ms/u/s!AsqB_KRbtD0ajMpfIv317HE4VymH9w?e=dBHAju

Thanks for your help.

 

0 votes

Hi Vincent,

this issue was logged as #2634 and is fixed in our latest Wisej release (2.2.47).

Best regards
Frank

0 votes

No when i publish the App directly to an IIS its running and all is fine.

To deploy the App to the customer we plan to ship it wit the Exe and not deploy it on customers IIS (They currently don`t have one).

To test it before shipment i tooked the App copied all the files to an test client, added the Exe and gave it a try.

 

Showing 3801 - 3820 of 11k results