This Window1 without any click handler.
Imports System
Imports Wisej.Web
Public Class Window1
End Class
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.
The circled button at the top left corner is what i am referring to.
The sample doesn’t have a navbar, it’s just an empty page and empty window.
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.
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
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
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 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?
HI Alaa,
thank you very much.
SOLVED!
Hi Sascha,
Can you please wrap up a small sample with your custom editor included?
I couldn’t reproduce the issue!
Thanks,
Alaa
//
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
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
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”)]
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
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
//
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.
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.
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
Update: I installed VS 2022 and there, I get the Designer with no problem. So I’ll just use VS 2022.
