My old project has the same issue, and I used Visual Studio version 17.5.0 Preview.
Does anyone know why OnWidgetEvent(WidgetEventArgs e) reports 0,0 instead of coordinates, works with same event in VsCode?
The repository / source code can be found at: https://github.com/Opzet/WjLeaflet
This works in js
map.on('click', function(e) {
alert(e.latlng);
} );
but calling the same via WidgetEvent return dynamic is faulty?
protected override void OnWidgetEvent(WidgetEventArgs e)
{
switch (e.Type)
{
case "click": //Mapclick
case "rightclick":
// latlng
OnMapClick(new MapMouseEventArgs(e));
break;
LeafletjsMap -> LeafletMap.cs
/// <summary>
/// Fired when the user clicks on the map or a marker.
/// </summary>
public event MapMouseEventHandler MapClick
{
add { base.AddHandler(nameof(MapClick), value); }
remove { base.RemoveHandler(nameof(MapClick), value); }
}
Wired up
this.leafletMap1.MapClick` += new LeafletjsMaps.MapMouseEventHandler(this.leafletMap1_MapClick);
Line 60: frmWjLeafletjs.cs
// C# Event -> reports co ordinates 0,0 ?
private void leafletMap1_MapClick(object sender, MapMouseEventArgs e)
{
// To Do : MapMouseEventArgs not bubbling up, always shows as Lat:0 , Lon:0 ?
// Works in VsCode?
if (e.Marker == null)
AlertBox.Show("You clicked location: " + e.Location.ToString());
Hello,
I’m not really sure I fully understand the question here, but I can tell you the following:
Hope this does answer some parts of your questions, if anything falls short, please do let me know and I’ll be happy to help!
Best,
Alaa
Hi Cristian,
This issue was fixed in Wisej.NET 3 (specifically version 3.0.10).
Unfortunately, we no longer support Wisej 2.5.
Best,
Alaa
Hi Cristian,
Fortunately, there’s a demo in our DemoBrowser application that showcases what you’re trying to do, you can find the source code at: https://github.com/iceteagroup/wisej-demobrowser/tree/main/Demos/Grids/Wisej.DemoBrowser.PropertyGrid
HTH,
Alaa
ManagedPipelineHandler
You have the wrong app pool. See our deployment docs.
Hello Frank,
I tested the on the latest Wisej.Net 3.0.17 version, the time is still being defaulted to 12am instead current user local time. Attached is the sample application I created for testing. Can you please check and let me know how we can ensure the time is set to current local time.
Thanks
Sathya
Wise.NET and its components are developed in the US and sold from there. Therefore, that’s the country of origin.
In case of any questions, feel free to get in touch: sales@wisej.com
Best
Thomas
Hi Messere,
Sorry for the long wait, here are the answers
HTH,
Alaa
Hi Soran,
We have investigated the issue, and I would like to inform you that the issue is infact related to the Region Format on your machine,
We have taken note and in a future release the textbox is going to ignore the machine preference in order to mitigate this issue!
In the meantime, it would make sense to change these settings in order to activate your license, here are the steps:
I have attached screenshots to help guide you in case you have a different language on your system.
After that, you can activate your license and then switch back everything by doing the same thing and clicking on the Reset button (see Step 4.png)
HTH,
Alaa
You can try this help. It worked for me when PrintJobLimit
1. Open Command prompt with Run as….
2. Run command:
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\Server” /v PrintJobLimit /d 9999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\9.0\Report App\Server” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\Server” /v PrintJobLimit /d 9999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Crystal Decisions\10.2\Report Application Server\InProcServer” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Crystal Decisions\10.2\Report Application Server\Server” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Crystal Decisions\9.0\Report App\InprocServer” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Crystal Decisions\9.0\Report App\Server” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer” /v PrintJobLimit /d 99999 /f
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\Server” /v PrintJobLimit /d 9999 /f
Hello Wisej Community,
I’ve created a Github repository for a Wisej LeafletJS widget called WjLeaflet. This widget provides advanced control features such as events, properties, and methods.
The repository can be found at: https://github.com/Opzet/WjLeaflet
I would greatly appreciate it if the Wisej community could review the repository and contribute to help implement the full feature set of LeafletJS from Wisej C#.
Thank you for your time and support!
Hi Alex,
In addition to my colleague’s answer, a proper fix is added to the extensions repository.
You can check out the Code from GitHub and compile the Wisej.Web.Ext.TinyEditor project and add it to your projects as an Assembly reference while you wait for the official NuGet release!
HTH,
Alaa
In order to change the toolbar, you will need to edit it via css.
In the toolbox, search for “StyleSheet”. Drag and drop the stylesheet on to the TinyEditor in the designer.
Because the stylesheet is an invisible control, you’ll have to look in the component tray (right below the designer) to see it. (See attached picture).
Clicking on the stylesheet will bring up the properties in the Properties window. Click on “Styles” and a code editor will pop up. Here you can type css. (see attached picture).
A quick way to do it is to simply make the overflow visible:
.tinyeditor-header
{
overflow: visible!important;
}
However, then the background of the toolbar won’t show up for the overflowing icons.
A better solution is to increase the height of the toolbar and set the background to repeat. The initial height was 31px, so I just doubled it to 62px.
.tinyeditor-header
{
height: 62px!important;
background-repeat: repeat!important;
}
Additional notes: If you press F12 to open the developer tools in the browser, you can see the names of the css classes that make up the TinyEditor. I used .tinyeditor-header Depending on what other settings you need to change, .tinyeditor .tinyeditor-control .tinyeditor-divider and .tinyeditor-footer may be relevant.
Also, make sure to include !important to make sure that the css you write overrides the default css.
So, if I understand correctly, on Docker Swarm it is not possible using its native load balancer, but one must create a load balancer (NGIX or other) in order to configure the correct Session Affinity… is this correct?
It possible to act on Docker Swarm’s load balancer configuration (although I haven’t understood where)?
The healthcheck doesn’t work like that. It’s for custom load balancing and requires that the load balancer supports failover. You can leave that out. The other issue is because you didn’t setup session affinity. Any session based system would not work if you switch the server randomly.
Hi Peter,
Wisej.NET already has a built-in feature to make it easier to identify elements for automation tests.
It’s as easy as setting up the default.json file by adding the following:
"options": {
"automation.mode": true
}
The complete JSON would be as follows:
{
"url": "Default.html",
"startup": "Wisej_Project_Name.Program.Main, Wisej_Project_Name",
"options": {
"automation.mode": true
}
}
Basically, what this feature does is that it replaces all the obfuscated ids of the controls and gives you a hierarchical representation of the control so you can easily identify all the components.
As an example, you can have a Button inside of a FlowLayoutPanel, instead of that button being represented as “id_X” in the dom, it would be something like: Page1_flowLayoutPanel1_Button.
HTH,
Alaa
I think the issue here is that you are trying to set the button properties textAlign to center, when you actually need to set the button label. Each button has a label, and the label is what the text is inside. You can even make the label and button different colors if you want to see it more clearly.
I tried working with the textAlign property and couldn’t get it to center. Luckily- there’s a workaround- you can use css styles. Specifically this style.
I’ve included a screenshot of a simple ribbonbar with this mixin.
Here’s the relevant part of the mixin:
“components”: {
“button”: {
“states”: {
“default”: {
“styles”: {
“backgroundColor”: “#66FF00” //set the background color of the button so you can see it clearly
},
“properties”: {
//you were previously setting “textAlign”: “center” here
“maxWidth”: null,
“padding”: [1, 4, 1, 4]
}
},
“vertical”: {
“properties”: {
“maxWidth”: 78
},
“styles”: {
}
},
“pushed”: {
“styles”: {
“backgroundColor”: “buttonSelected”
},
“properties”: {
“textColor”: “buttonSelectedText”
}
}
},
“components”: {
“icon”: {
“inherit”: “icon-dark”,
“states”: {
“default”: {
“styles”: {
},
“properties”: {
}
},
“vertical”: {
“properties”: {
“width”: 32,
“height”: 32,
“scale”: true
},
“styles”: {
}
},
“horizontal”: {
“properties”: {
“width”: 16,
“height”: 16,
“scale”: true
},
“styles”: {
}
}
}
},
“label”: { //here is the button label
“states”: {
“default”: {
“properties”: {
},
“styles”: {
“backgroundColor”: “#FFEF00” //I set the background color just so you can see it
}
},
“vertical”: {
“properties”: {
},
“styles”: {//here is the css to justify the text
“css”: “{\”text-align\”:\”justify\”}”
//alternatively if you want to center the text instead of justifying it you can do this
//”css”: “{\”text-align\”:\”center\”}”
} } } },
Hi Pablo,
We’re currently looking into your issue and we’ll report back ASAP!
Best,
Alaa
//
Hi Alex,
We’re currently looking at your issue and we’ll report back ASAP!
Best,
Alaa
//
