-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
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
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.
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
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
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
Thanks for letting us know, we are investigating the issue.
-Julie
Hi Christian,
We’ll take a close look at this issue and keep you updated.
Best,
Alaa
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
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
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
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.
Hi, had the same problem. The new VSIX has eliminated the bug.
Found the problem.
IframePanel.Call requires a callback of type Action<dynamic>, it was my mistake. Closing the issue
Correction!
Now the wisej3.2 app is shown correctly.
But on the wisej2.5 app it is the same as it was. No Controls!
Sorry, but installing the VSIX from Alaa did not change anything.
The controls in the designer are not visible.
Thank you.
Hi Jose,
Unfortunately, that would be out of scope for what we can offer here as free support.
You can however, use the ASP.NET Core 6 wrapper and host it in an iFramePanel in Wisej.NET.
Best,
Alaa
Hi Rupert,
This looks like the issue we mentioned in https://wisej.com/support/question/important-information-regarding-the-recent-update-to-visual-studio-2022-17-7-0
Please follow the steps there by downloading the new VSIX installer, that should fix it!
Best,
Alaa
Thanks Alaa, I understand that ASP.NET Wrapper extension is compatible only with net 4.8 but FastReport has compatibility with ASP.NET Core MVC 6, will you have any example of how to integrate something like this? Thank you
Hi Sergio,
To answer your questions:
HTH,
Alaa