All Answers

0 votes

This Window1 without any click handler.

Imports System
Imports Wisej.Web

Public Class Window1

End Class

 

 

  • Luca answered May 6, 2022 - 2:13 pm
0 votes

This is Window1


‘NavigationBar1

Me.NavigationBar1.Dock = Wisej.Web.DockStyle.Left
Me.NavigationBar1.Logo = “menu-overflow”
Me.NavigationBar1.Name = “NavigationBar1”
Me.NavigationBar1.Size = New System.Drawing.Size(282, 695)
Me.NavigationBar1.TabIndex = 0
Me.NavigationBar1.Text = “NavigationBar1”

 

There is nothing to click and no items.

  • Luca answered May 6, 2022 - 2:12 pm
0 votes

The circled button at the top left corner is what i am referring to.

0 votes

The sample doesn’t have a navbar, it’s just an empty page and empty window.

  • Luca answered May 6, 2022 - 1:06 pm
0 votes

Update: I rewrote my Editor. It now extends DataGridViewTextBoxEditingControl. Before it only derived from TextBox and I think that was an issue. Now it seems to work properly.

0 votes

Hi Nicholas,

That’s because your using the Blue-3 theme at Design time and Bootstrap-4 at runtime.

You can either continue designing the controls you want just by simply switching the designer to use the Bootstrap-4 theme, or add an entry to your Default.json file to use the theme you want, like the following:

“theme”:”Blue-3”.

HTH,

Alaa

 

0 votes

Click Create New Project in Visual Studio. Select one of the Wisej 3 new project templates.

If the templates don’t show up in your Visual Studio and you have installed Wisej selecting VS 2022 then it’s a known common Visual Studio issue.

Click on the Getting Started documentation link and follow the instruction on how to update the templates. It’s also on Microsoft’s documentation regarding VS templates: devenv /updateConfiguration

See links to docs:

https://docs.wisej.com/docs/getting-started

https://docs.wisej.com/docs/getting-started-1/new-project#missing-templates

HTH

 

 

  • Luca answered May 5, 2022 - 12:29 am
0 votes

Hi Angelos,

You can definitely do that!

Each Control or Widget has an InitScript property that you can customize to your liking, with that being said, it can be used to have some custom functions that you can Call them from the server.

Wisej can call JavaScript functions or run any JavaScript scripts , using the Call and Eval methods respectively.

This can be scoped to the entire application (by using Application.Call() or Application.Eval()) or on individual controls (i.e Control.Call() or Control.Eval()).

For more information on this, you can visit:
https://docs.wisej.com/api/wisej.web/general/application#call-function-args
https://docs.wisej.com/api/wisej.web/general/application#eval-script
https://docs.wisej.com/api/wisej.web/content/widget#initscript

I have updated the provided sample and I re-attached it!

HTH,
Alaa

  • Alaa (ITG) answered May 4, 2022 - 3:35 pm
  • last active May 4, 2022 - 3:36 pm
0 votes

Alaa i’m sorry,

now i would like to “click” programmatically the HTML button without really push it, for example on an event.

Is it possible?

0 votes

HI Alaa,

thank you very much.

SOLVED!

0 votes

Hi Sascha,

Can you please wrap up a small sample with your custom editor included?
I couldn’t reproduce the issue!

Thanks,
Alaa

//

0 votes

Hi Angelo,

I have attached a sample that might be of help to you.

Basically, you can assign any placeholder id in your HTML code and then replace it with whatever value you want.

The HtmlPanel has the Html property that you can manipulate, no matter the source.

Please visit : HtmlPanel – Documentation for more info.

HTH,
Alaa

0 votes

Hi Nicholas,

You’ll have to make sure that all extensions are updated to Wisej 3, one of your components suggest that it’s trying to load the Wisej 2 version.

Also, make sure that you upgrade your .resx files to Wisej.Framework, Version=3.0.0.0, you can find more information here: https://docs.wisej.com/docs/releases/whats-new-in-3.0/update-existing-projects#upgrade-resource-files-.resx , but it’s likely that your projects don’t have any Wisej.Framework reference in the .resx files and that’s normal!

You can also try to clean your project and rebuild it, but always make sure that you have all proper packages installed like mentioned above.

HTH,
Alaa

0 votes
In reply to: Property String Editor

Forgot, if you want to use the editors built-in wisej, do this:

[Editor(“Wisej.Design.CodeEditor, Wisej.Framework.Design, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17bef35e11b84171”, “System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”)]

Change the version for Wisej to 2.0.0.0 if using Wisej 2.5.

For an image source string:

[Editor(“Wisej.Design.ImageSourceEditor, Wisej.Framework.Design, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17bef35e11b84171”, “System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”)]
[TypeConverter(“Wisej.Design.ImageSourceConverter, Wisej.Framework.Design, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17bef35e11b84171”)]

 

 

  • Luca answered May 3, 2022 - 4:28 pm
0 votes
In reply to: Property String Editor

Yes, you have to create your editor.  Look for UITypeEditor examples online. There are many. You can define the type of editor:DropDown or Modal. You can draw in the little square preview, etc. It’s all standard System.ComponentModel and System.Drawing.Design.

https://stackoverflow.com/questions/36577901/c-sharp-uitypeeditor-with-parameter

  • Luca answered May 3, 2022 - 4:21 pm
0 votes
In reply to: Application.ShowLoader

Hi Vincent,

All you have to do is set the Button’s AutoShowLoader property to true.
Visit https://docs.wisej.com/api/wisej.web/buttons/wisej.web.buttonbase#autoshowloader for more info !

Best,
Alaa

//

  • Alaa (ITG) answered May 3, 2022 - 11:39 am
  • last active May 3, 2022 - 12:05 pm
0 votes
In reply to: Application.ShowLoader

The auto loader is removed when a response arrives to the browser. The additional time is probably the browser time to render many controls.

If you want to remove the loader after everything is actually visible and rendered on the browser use your first approach and turn the loader off in the Appear event of the control that you want to make sure is visible.

https://docs.wisej.com/api/wisej.web/general/control#appear

When showing the loader you can use Application.Update() as you did, or make the event async.

  • Luca answered May 3, 2022 - 12:02 pm
0 votes
In reply to: Application.ShowLoader

This kinda works but not fully. If I do this then the loader does show every time but it dissapears before the page is shown. There’s atleast a second delay before the page is actually show on my computer. This would likely be longer on an actual server. There’s no code other then just a big usercontrol with a lot of controls now, this will have a lot of code later.

  • Vincent answered May 3, 2022 - 11:46 am
0 votes

Hi Shady,

Please note that Wisej Desktop requires a deployment license. Starting with the new license model (since April 15th), Wisej Desktop is available without cost but only if you are a Technology Partner. Support for Wisej Desktop is provided on a direct basis outside this forum.

In case of any questions, please contact me at sales@wisej.com.

Thanks you
Thomas

0 votes

Update: I installed VS 2022 and there, I get the Designer with no problem. So I’ll just use VS 2022.

Showing 2601 - 2620 of 11k results