Hi Giorgia,
in order to check this issue we need a small compilable repro case, see our forum guidelines.
Thanks in advance,
Frank
It is similar to .NET MAUI Markup, but for Wisej.
See https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/markup
Basically, properties become methods. It allows you to write the same amount of code, but type less.
For example, this Wisej Markup code would create a Page with a SplitContainer containing a Panel with a TreeView.
public Page1()
{
InitializeComponent();
this.Text("Main Window")
.MinimumSize(800, 600)
.Controls(
new SplitContainer()
.Dock(DockStyle.Fill)
.Panel1(
new TreeView()
.Dock(DockStyle.Fill)
.Nodes(
new TreeNode("Node 1")
.Nodes(
new TreeNode("Node 1.1"),
new TreeNode("Node 1.2")
)
)
)
)
.Show();
}
-Julie
Can you please provide a test case? Please follow the guidelines here: https://wisej.com/support/question/forum-guidelines under “Before Posting an Issue”
Thanks,
Julie
I would not recommend using htmlpanel. Instead, use the chartJS extension. It is a nuget package. In Solution Explorer, right-click, choose “Manage Nuget Packages”, and search for “Wisej ChartJS”.
The code to add data and labels to a chartJS chart looks like this:
object[] array1 = new object[] { 1, 3, 5, 7, 9 };
chartJS1.DataSets.Add("Data Set").Data = array1;
chartJS1.Labels = new string[] {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"};
See attached sample project.
Hope this helps!
-Julie
Hi Neil,
please find a simple sample attached that does what you described.
For more information about the AceEditor please refer to their documentation.
Best regards
Frank
You can see an example of the Combobox in AutoCompleteMode in the demobrowser here:
https://wisej-demobrowser.azurewebsites.net/#Editors/ComboBox/Auto%20Complete (In the demobrowser menu on the left, expand “ComboBox” and then choose “Auto Complete”)
The source code for the Combobox in the demobrowser is here: https://github.com/iceteagroup/wisej-demobrowser/tree/main/Demos/Editors/Wisej.DemoBrowser.ComboBox Specifically, look at the files AutoComplete.cs and AutoComplete.Designer.cs
In the demobrowser example, this is how items are added to the combobox:
this.comboBox1.Items.AddRange(new object[] {
"Aberdeen",
"Abilene",
"Columbus"});
-Julie
Hi, I’m on Wisej 3.1.6 and the same version on the server. Websockets are installed. Small repro is attached, Thank you
Hi Roberto,
The code should basically work the some on the server as in localhost.
Can you please put up a small repro case for us?
Are you running the same Wisej.NET versions on both? Do both have websockets installed?
Best regards
Frank
Hello,
Unfortunately, it’s not possible to access the client’s printers directly in Wisej. That’s not a limitation specific to Wisej- it’s not possible to access printers directly via javascript in any browser.
You would have to go through some sort of print preview, which would list the printers that the client has and give you a button that you can click to print.
Here are some options:
-The PrintPreview Extension https://github.com/iceteagroup/wisej-extensions/tree/3.5/Wisej.Web.Ext.PrintPreview
-Application.Print https://docs.wisej.com/docs/controls/general/application#printing
This forum post has some sample C# code for the PrintPreview extension, which you may find helpful: https://wisej.com/support/question/printdocument-preview-and-print
Hope this helps,
Julie
Thanks Julie! I’ll go that route. For what it’s worth, I have been slowly adding pieces of my broken app to a fresh project. I can’t make it fail.
Thanks again!
Gerry
Hi Julie,
Thanks for the response! I have been trying to reproduce this issue in a new and much smaller project, small enough, that I could upload to your forum. My app relies on a couple of large dependencies which once stripped would render a test project unusable. I’m still trying to reproduce the problem without the full weight of my program but so far cannot reproduce the problem in a new project. Anticipating that this may be a nebulous issue, I decided to simply step back to a version that had worked fine and had no issues by cloning my backup from GitHub. The result was that that version, once run, exhibited all the same problems despite the fact that it ran perfectly 4 days ago.
I’m thinking this is not a code issue on my part but I have no idea where to begin. Not only will the project not run but there are now issues with controls losing their reference to Wisej. In particular, the Upload control shows a conflict with a Chilkat reference and I can’t even look at the form in the Design View.
The problem has cascaded.
I realize you have changed your business model to a subscription format including support. I plan on switching to Wisej 3 but am cautious since my app is complex and I was hoping to share it with some investors to show its capability soon and didn’t want to delay that dealing with upgrade issues.
I’m willing to pay for support, perhaps with a live sharing of my screen with a tech.
Please let me know how we can work on this more directly.
Thanks very much!
Gerry
“Could you provide a small sample, of how to correctly use the ChartJS extension in this regard?”
Unfortunately, creating custom samples from scratch is outside the scope of the services we offer on this free support forum.
You can either look at the pre-existing ChartJS samples here:
https://docs.wisej.com/examples/examples/chartjs
https://wisej-demobrowser.azurewebsites.net/#Extensions/ChartJS/Features
Or you will need to provide a small sample, following the guidelines under “Before Posting an Issue” here: https://wisej.com/support/question/forum-guidelines In your case, this would be a sample that uses ChartJS, and has Time on the x-axis in a 12-hour format (am/pm).
Alternatively, we can develop a sample from scratch for you, if you purchase a support package: https://docs.wisej.com/license/services/professional-services
Hope this helps,
Julie
Hello,
We will need a reproducible test case in order to help you with this issue.
See “Before Posting an Issue” here: https://wisej.com/support/question/forum-guidelines
Thanks,
Julie
1) I can’t find it using Nuget manager.
PrintPreview extension is not on nuget.
2) I downloaded the solution from GitHub and built the dll but it won’t allow me to drag and drop it into the tools menu in VS.
There is nothing to add to the toolbox- it’s not like, say, a button control where you can drag and drop it from the toolbox.
You can add it to your project by referencing the dll. (In Solution Explorer: References -> right-click, choose “Add Reference”, click “Browse”, select the dll)
PrintPreview is a dialog and a control that can be used in code to preview wmf or pdf files. It displays a System.Drawing.Printing.PrintDocument. All formatting or rendering support is part of System.Drawing.
For any additional help on PrintPreview, refer to Microsoft System.Drawing documentation: https://learn.microsoft.com/en-us/dotnet/api/system.drawing?view=net-8.0
For any additional questions, please refer to the forum guidelines under “Before Posting An Issue”: https://wisej.com/support/question/forum-guidelines
Hope this helps!
-Julie
Thank you Joe!
see the Github repo here: iceteagroup/wisej-video-samples (github.com)
Hi Mirko,
Wisej.NET 3.5.5 will add MenuPopup and MenuCollapse events to SplitButtons.
It’s currently in QA and will be released soon.
Best regards
Frank
Hi Mirko,
currently there are no events fired but I have logged an enhancement request (3363) for it.
Best regards
Frank
Hi Tim,
I have attached a sample for Azure B2C authentication in a Wisej.NET application.
P.S: It works for both .NET Framework and .NET Core, while the .NET Core implementation is native, the .NET Framework one uses Owin as a middleware!
Best regards,
Alaa
//
Hi Alaa, sorry for late reply.
I could not reproduce the NullReferenceException in a sample project, but a similar, maybe related error.
Attached is the sample project. (Using most recent Wisej 3.5.5 RC7 version)
Please take a look at the file \Views\DataGridBinding.cs
Please run and wait for some time, perhaps for 1-2 minutes.
After running correctly for some time, several types of exceptions will be thrown:
1) Index out of range (DataError event) .
2) System.InvalidOperationException: ‘BindingSource cannot be its own data source. Do not set the DataSource and DataMember properties to values that refer back to BindingSource.’
These exceptions can be caught and ignored.
As for the other NullReferenceException, I will need to do more testing (setting more properties). Maybe I can reproduce.
