All Answers

0 votes

I tested with Visual Studio 2019-16.11.26 and the Wisej NuGet package 3.2.4, and I cannot reproduce.

Your error message says “Disabling the extension Wisej.NET 3.1 3.1.8 might help”. I believe this is referring to the version of the Wisej VSIX that you have installed-looks like you’re using an older version. I am using the most recent version, so perhaps that’s why it works for me?

Try updating the VSIX (Uninstall it and install the most recent version) and see if that fixes it.

  1. In Visual Studio, go to Extensions -> Manage Extensions.
  2. Under “Installed”, you should see Wisej.NET. Click the “Uninstall” button and close Visual Studio. You will see a popup related to uninstalling Wisej, click “Modify” to run.
  3. Download the most recent VSIX installer here: https://wisej.com/support/question/important-information-regarding-the-recent-update-to-visual-studio-2022-17-7-0
  4. Go to your downloads folder to find the .vsix installer. Run it.
  5. Start Visual Studio and create a new Wisej project- everything should be working.

    -Julie

  • Julie(ITG) answered Sep 1, 2023 - 3:01 pm
  • last active Sep 1, 2023 - 3:03 pm
0 votes

Hi Kurt,

Thank you for reporting the issue, we’ll try to reproduce it and get back to you ASAP!

Best,
Alaa

0 votes
In reply to: REST API Integration

 

We are using WiseJ 3.1.10, however when we try to HttpClient in visual studio vb.net we get Type ‘Http.HttpClient’ is not defined (see screenshot).

Our production servers are Linux using the net7.0 framework.

As of right now when we can’t run our application in development mode and call an API.

We even tried switching between frameworks in the editor, see screenshot 2.

How can we make a web request in development mode?

0 votes

Yes, you can use Microsoft.EntityFrameworkCore with Wisej. You just need to install the NuGet package in your project.

 

Create a Wisej project. In Solution Explorer, simply right-click on the project and choose “Manage NuGet Packages”.

Search for “Microsoft.EntityFrameworkCore” and install it.

 

0 votes

Hi Julie,

The Application.OpenWindow works nicely. However, the windowFeatures string, in which I tried things like “left=1500, top=1300” or “screenX=1500, screenY=1300” does not seem to make any difference and, therefore, the window position cannot be set before opening. Is there a chance that this is fixed soon?

Best regards,
Alex

0 votes

You can open a popup that’s not within the borders of the browser. The popup would be a new browser (like what you get if you open Chrome again). Wisej will treat it as a new session- so you will have to sync the data.

To do this, you can use Application.OpenWindow, see code snippet here: https://docs.wisej.com/docs/releases/whats-new-in-3.1#new-openwindow-callback

This allows you to have a callback when the user closes the other window so you can “restore” the original window. To the user, it looks like the same session in two browser windows but that is not how it works behind the scenes.

Note that you cannot have the same session in two browser windows or two browser tabs. Thus, the need to sync the data between the 2 sessions.

-Julie

0 votes

Thank you, Julie.

If I understand correctly, a popup window is always within the borders of the browser. So, although I can position it as I like, it will always be within the browser. This means the browser will have to extend to both screens. And that won’t be nice. That’s why I originally asked for a second browser window.

And the question remains. How do I do it?

Best,

Alex

0 votes

-If you open a new browser window, it will create a new session, BUT you can pass info (authentication+ what view to load) via the url.

-You should be able to make the window a popup, which means that you can control the position of where it is created. You could position it so that it is on the second screen. https://developer.mozilla.org/en-US/docs/Web/API/Window/open

These forum posts are on similar topics, you might find them helpful:
https://wisej.com/support/question/open-in-a-new-window-in-the-application
https://wisej.com/support/question/applications

1 vote

You are on the right track with using JavaScript and with the ‘suppressMarkers’ option in a DirectionsRenderer object.

Some things to fix with your code:
– Don’t use getElementbyId. There are better ways to get the reference to the Wisej GoogleMaps widget.
Also, you are creating a new map here: map = new google.maps.Map(... You don’t need to create a new map, we can just access the map that already exists within the widget.

– You do this.Eval(... In your code, this is equal to NameSpaceName.Page1. (NameSpaceName depends on what you named your project- it’s probably something like WisejWebApplication1 So, this would be WisejWebApplication1.Page1). Instead of calling Eval from the Page, call it from the googleMap object- which in your case is googleMap1

So your code should look like: googleMap1.Eval(... Now we can access properties inside of the widget- such as the DirectionsRenderer object that already exists inside of the widget. Very handy!

Here is the code snippet you need: (Note: Inside of the Eval statement here, this refers to the widget container, this.map refers to the map inside of the widget.)
googleMap1.Eval("this._directionsRenderer = new google.maps.DirectionsRenderer({suppressMarkers: true}); this._directionsRenderer.setMap(this.map); ");

I’ve attached a sample as well. You will need to add your Google Maps API Key in the designer to get it to work.

-Julie

  • Julie(ITG) answered Aug 29, 2023 - 7:55 pm
  • last active Aug 29, 2023 - 7:56 pm
0 votes

The code snippet you provided should work. See edited version of your sample- works fine.
The issue must be caused by a different part of the code.

0 votes

Hello!
There are a couple of options:
1. If you want to look into implementing this in a standard Wisej DataGridView, you will find this previous forum post to be helpful.

2. You could look into using one of the premium extensions- DevExtreme- specifically the dxDataGrid.
You can see it running in the demobrowser here
Source code for the demobrowser demo is on GitHub here and here (dxDataGrid.Designer.cs and dxDataGrid.cs)

HTH,
Julie

  • Julie(ITG) answered Aug 29, 2023 - 1:54 pm
  • last active Aug 29, 2023 - 1:55 pm
0 votes

Hello Julie,

good tip.

The alpha value is important to me. I want to preserve the color gradation of the even and odd color gradations of the lines. see screenshot. It looks smother.

I’ve been thinking about this here:

private void dataGridViewBrush_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)

{
       DataGridView dgv = (DataGridView)sender;
      CellColorBeforEdit = dgv.Rows[e.RowIndex].Cells[e.ColumnIndex].InheritedStyle.BackColor;
      Color newcolor = Color.FromArgb(CellColorBeforEdit.R, CellColorBeforEdit.G, CellColorBeforEdit.B);
      dgv.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = newcolor;
}
private void dataGridViewBrush_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
       DataGridView dgv = (DataGridView)sender;
       dgv.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = CellColorBeforEdit;
}

I remove the alpa channel while editing and add it back after editing.

OK.  >> functioned . No ghosting during editing.

Next problem. After editing, no cell entry is visible. Do I need to adjust the visibility of the cell somehow? (sreenshot cell 17Z, 16H or 20Z was editing.)

Walter

 

1 vote

It is not a bug. The sample puts a transparent color in the editing control. A transparent color shows what is behind-thus, why you can see the previous value as the cell is being edited.

Change this:
dg.Columns[2].DefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(88, 52, 255, 198);

to this: (removes the transparency)
dg.Columns[2].DefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(52, 255, 198);

The first argument in System.Drawing.Color.FromArgb(88, 52, 255, 198) -in this case 88- is the alpha value, which controls the transparency.
If you send only 3 arguments, there is no alpha value.

HTH,
Julie

  • Julie(ITG) answered Aug 28, 2023 - 6:54 pm
  • last active Aug 28, 2023 - 6:54 pm
0 votes

Thanks for letting us know, we are investigating the issue.

-Julie

 

0 votes

Hi Christian,

We’ll take a close look at this issue and keep you updated.

Best,
Alaa

0 votes

Hi Devin,

Wisej.NET 3.5 will not drop support for .NET Framework 4.8, it’s still going to be needed for the designer.

We do have a plan to move forward with a .NET Core designer in the future.

Best,
Alaa

1 vote

Hi Carl,

Since the report is very large, the request is what is timing out.

The error is coming from IIS, I would suggest that you increase the “Connection time out” value of your IIS Site.

Best,
Alaa

0 votes

Hi Adrian… yes you can do it… currently I work under that concept… I have my own library of classes, controls, interfaces, functions, security, etc, I have created it in an independent solution referencing Wisej, I compile and the dll that is generated is the one that I share for the other projects…

I currently use version 2.5.x

Regards

1 vote

It’s not working on my PC. I deinstalled exiting Wisej.NET version in Visual Studio, installed the downloaded version. The project itself can be compiled/run. The forms/pages are loaded in designed, the controls are there but not visible. When I click on control (a textbox in this case) it’s borders are displayed but nothing more. Please advice.

Visual Studio 17.7.2

Wisej 3.2.4

 

When using IE Renderer it’s working correctly; the problem exists just for Edge/Chrome Renderer.

  • Adrian Zagar answered Aug 27, 2023 - 11:22 am
  • last active Aug 27, 2023 - 1:06 pm
0 votes
In reply to: Upgrade to Version 3.2

Hi, had the same problem. The new VSIX has eliminated the bug.

Showing 1261 - 1280 of 11k results