All Answers

0 votes

I have a similar issue in WiseJ 4.0. As soon as I change the JSON of the Options property (for example just changing the zoom level) the map turns grey at runtime (at design time everything works fine). I don’t get any relevant erros in the console. Any suggestions?

0 votes

Hi Frank,

Thanks for your comment about it.

In checking version 3.5.18, the majority of standard controls can be dragged into TableLayout perfectly. I only found an issue when a MonthCalendar is dragged in. The control has glitches in design mode.

The video attached shows the issue.

Best regards, Paul

  • Paul answered May 7, 2025 - 2:57 pm
0 votes

Hello,

Try restarting Visual Studio, this should fix the issue and load the Wisej controls.

Julie

0 votes

Correct, you can just add another project to the solution. No, it doesn’t need to be a Wisej Hybrid project. It can just be a class library with the Wisej nuget package. You can add the System.Windows.Forms stuff from the template to the .csproj file if you’re using .NET FX.

Hope this helps,

Julie

 

 

0 votes
In reply to: Wisej 3.5.18 ETA

Hi,

this is fixed in Wisej.NET 3.5.18 that has been deployed today.

Best regards
Frank

 

0 votes

Hi Paul,

Wisej.NET 3.5.18 has been released that fixes this issue.

Best regards
Frank

0 votes
In reply to: Wisej 3.5.18 ETA

Responding to this forum post for completeness- I already sent the test build via email.

It is a known issue and is fixed internally. We don’t have an exact date for release of 3.5.18 but I would guess 1-2 weeks.

 

Julie

0 votes

You might find these links to be helpful:
https://docs.wisej.com/docs/getting-started-1/license-activation
https://docs.wisej.com/deployment/troubleshooting/license-activation

The Wisej Server Express License has a minimum version of 3.5.6.9. So my guess is that’s why it’s not working- you are using an older version of Wisej. Using a Standard Server License should fix the issue.

0 votes

The error is probably something to do with your production environment not being able to load the content from the CDN. TinyMCE is a commercial product, and because of that we are required to use their CDN to use the packages, not like ChartJS or anything else that we can distribute. Unfortunately,  it’s not possible for us to track it unless we get some sort of an error.

Regarding the try-catch block, unfortunately you won’t be able to do that in your code- it would be a modification in either qooxdoo or the client side of Wisej.

Julie

 

 

0 votes

Hello,

Can you please attach a a screenshot of the DevTools console?

TIA,
Alaa

0 votes

You need to set in Default.json

Snippet

“impersonate”: true

Then you can do this:

Snippet

// Because "impersonate": true is now active,
// this picks up the client's Kerberos/NTLM identity:
var identity = WindowsIdentity.GetCurrent();
var adUser = identity?.Name ?? "unauthenticated";
 
Debug.WriteLine($"Logged-in AD user: {adUser}");
0 votes

Hi Wilfred,

IIS Express doesn’t support ASP.NET Core. ASP.NET core uses kestrel and is self hosted.

IIS on the other hand has the ASP.NET Core Bridge Handler which is native (not managed).

Also, Authentication by IIS is not handled by Wisej.NET, and unfortunately it’s out of scope for the free tier support that this forum offers!

If you’d like additional support, you can order a professional support package.

For more info, please visit our Services section on our website.

Best Regards,
Alaa

0 votes

OK, so actually using the IIS Express profile when starting the page in the debugger.

Uncommenting this line in web.config:

Snippet

<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />

And uncommenting and changing to this:

        <aspNetCore stdoutLogEnabled="false" hostingModel="InProcess" processPath="bin\Debug\net9.0\MGRegnskapWisej.exe" arguments="" />

In startup.cs I added this:

Snippet

app.MapGet("/whoami", (Microsoft.AspNetCore.Http.HttpContext ctx) =>
     ctx.User.Identity?.Name ?? "unauthenticated")
   .RequireAuthorization();

And I can confirm that when browsing to /whoami it is working.

But when I browse to http://localhost:54429/ I get a blank page. And no code in Program.cs is executed.

So the question is can it work in IIS Express and what am I missing now?

0 votes

I have uppdated the launchSettings.json for the IISExpress profile:

The project’s properties enable Windows Authentication and disable Anonymous Authentication. Open the launch profiles dialog:

  1. In Solution Explorer, right click the project and select Properties.
  2. Select the Debug > General tab and select Open debug launch profiles UI.
  3. Clear the checkbox for Enable Anonymous Authentication.
  4. Select the checkbox for Enable Windows Authentication.

 

Snippet

{
  "profiles": {
    "MGRegnskapWisejWebDesktopApplication": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "WEBSITE_PATH": "$(MSBuildProjectDirectory)"
      },
      "applicationUrl": "http://localhost:5000"
    },
    "WSL": {
      "commandName": "WSL2",
      "launchBrowser": true,
      "launchUrl": "http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_URLS": "http://localhost:5000",
        "WEBSITE_PATH": "$(MSBuildProjectDirectory)"
      },
      "distributionName": ""
    }
  },
  "iisSettings": {
    "windowsAuthentication": true,
    "anonymousAuthentication": false,
    "iisExpress": {
      "applicationUrl": "http://localhost:54429",
      "sslPort": 0
    }
  }
}

But it is still not working.

0 votes

Alaa Thanks for your respons.

I have attachmet sample project without bin folder.

 

Thanks

 

Nicky

 

 

0 votes

Tanks Julie for your explanation and suggests.
I chose to use the HTML approch on cell format event.
I Know to embedd .png or emoji icon whith this code:

’emoji

e.Value =”<span role=’add’ style=’cursor:pointer; margin-right:10px; font-size:20px;’>➕</span>”

‘png

e.Value =”<img src=’resources/Add_01_24.png’ role=’add’ style=’cursor:pointer; width:20px; margin-right:10px;’ />” 

But if I want to use .svg icon from wisej themes i don’t know how do this.

I tried with this:

e.Value = “<svg role=’add’ class=’icon’ style=’width:20px;height:20px;fill:green;margin-right:10px;’>” &
                  “<use xlink:href=’#icon-error’></use>” 

where ‘#icon-error’ is the thema icon,

but not work. The problem for me is how to reference to theme icon in HTML syntax.

Any suggestion?

0 votes

Try the UserControl attached and use a monospaced font like Courier New

0 votes

Yes, this should be possible using the letter-spacing property:
https://www.w3schools.com/cssref/pr_text_letter-spacing.php

 

Here’s what it looks like in plain HTML:

<input type=”text” style=”letter-spacing: 2px;” placeholder=”Spaced letters”>

style=”letter-spacing: 2px;” is the css that you would need

 

-Julie

0 votes

It’s working as expected, not a bug.

When a datagridview is data bound the rows are all virtual. They get created and destroyed all the times allowing the grid to handle unlimited number of rows. There is no instance of a cell that can be used like that.

The real rows must be created.

One way is to use datagrid1.Fill(data) instead of DataSource = data.
Another way is to iterate the rows and force the creation of the real rows:

 Private Sub DataGridView1_DataBindingComplete(sender As Object, e As DataGridViewBindingCompleteEventArgs) Handles DataGridView1.DataBindingComplete

     For i As Integer = 0 To DataGridView1.RowCount - 1
         Dim r = DataGridView1.Rows(i)
     Next

 End Sub

In any case, the control should be created only in Clone() not in New().

The best approach is not to use a child control. It uses a lot of memory for large data sets. Datagrids should not be used like the datarepeater. It’s better to format the cell content using html to display buttons or icons or anything else and detect the click using the Role property of the click event. In html just add role=’delete’, role=’add’ and when clicking on the html in a cell the click event will carry the role string.

  • Julie(ITG) answered Apr 25, 2025 - 1:37 pm
  • last active Apr 25, 2025 - 1:37 pm
0 votes

Hi Nicky,

You can use the appSettings.json approach like you mentioned above, however if you’re running into issues with running queries on the DBContext, then it could be an issue of how you’re injecting the service into the Service Container.

I recommend heading to our documentation about Dependency Injection.

Can you wrap a small runnable sample that would showcase the issue?

Best Regards,
Alaa

Showing 1 - 20 of 11k results