If you run Wisej.HostService.exe works for you but when you run at a customer it doesn’t?
What is a test environment?
Please send a test case. I simply copied the exe in any Wisej app and it always works.
Good suggestion, will add to the enhancements.
For the toolbar, you can use the Separator set the SizeMode to Fill. If you don’t want to show the vertical line of the separator set the AppearanceKey to something else, like “none”.
For the menuBar you can already achieve the same by adding this this InitScript of the MenuBar:
var separator = this.getMenuBar().getMenuItems()[1]; separator.setLayoutProperties({flex:1}); separator.setAppearance("");
Assumes that the second item is the separator. Change the javascript however works for you.
{flex:1} will fill to use the available space. You can have multiple separators. You can also make the menu items grow to fill. If multiple items have the flex property it will be proportional, use flex:100, flex:50 or any other value. It’s a typical HBox layout.
If it runs as a process you need to run it as Administrator.
Also the self hosting uses the classic pipeline in web.config.
If you don’t want to use /default.html in the URL, then add this to web.config:
<system.web>
....
<httpModules>
<add name="Wisej" type="Wisej.Core.HttpModule, Wisej.Framework"/>
</httpModules>
....
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
I just tried here and it works without issues. The exe has to be at the same level as /bin (NOT in /bin).
If you still have issues, attach VS to the process, enable exceptions (Debug->Windows->Exception Settings) and see what it the exception causing the 500 error.
Hi Alaa.
Thanks for your quick reply
Regards
Hi Alaa.
Thanks for your prompt response .
Regards
Hi Alaa.
Thanks for your prompt response .
Regards
Hi Marcelo,
The <DIV> name attribute is basically the same as the component’s name property.
For example if you have named your Panel as panel1, the name attribute would be “panel1”.
You can also set the components name to anything you like with JavaScript with : App.MainPage.panel1.setName(“custom_name”); .
The above example assumes that you’re on your MainPage in the browser but it can be changed to any Page or Window you like.
I’ve put together a small sample that demonstrates these capabilities that you’ll find attached.
Best regards,
Alaa.
Hi Edmond,
The profile affects all of the controls on the page.
Since your problem seems to be resolved, I’m going to close this issue!
Feel free to open a new one if it returns.
Best,
Levie
Hi Levie.
Thanks for the reply.
I have been facing exceptions on the Map loading which the DevEx support is not able to reproduce, nor am I when using a plain ASP.NET application. However, once run in the Wisej AspNetWrapper control, I keep getting an exception stating the “document” was null:
Friday, April 2, 2021 3:38:14 PM
Source File: /Wisej.AspNetHost.aspx?sid=9d07c4e5-dd65-11b6-c2d4-274ca9ff7547&_cid=id_490&_sc=10
System.ArgumentNullException
Value cannot be null.
Parameter name: document
Stack Trace:
at DevExpress.DashboardCommon.Native.DashboardRestfulService.OnSpotDashboardFactory…ctor(XDocument document, IDataServiceConfigurator dataServiceConfigurator)
at DevExpress.DashboardWeb.Native.AdaptersFactory.c__DisplayClass5_0.b__0(XDocument dashboardXml)
at DevExpress.DashboardWeb.Native.RestrictedDataServiceAdapter.GetItemModelParams(String requestJson, Hashtable requestHashtable)
at DevExpress.DashboardWeb.Native.RestrictedDataServiceAdapter.GetMapShapeFileCore(String requestJson, Hashtable requestHashtable)
at DevExpress.DashboardWeb.Native.RestrictedDataServiceAdapter.GetMapShapeFile(IDictionary2 queryParams) at DevExpress.DashboardWeb.Native.ActionExecutor.Execute(String actionPath, String method, NameValueCollection queryValues, Func1 getRequestBody)
at DevExpress.DashboardWeb.ASPxDashboard.RaiseCallbackEvent(String eventArgument)
at DevExpress.Web.ASPxWebControl.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String eventArgument)
So, I am trying to find a way to workaround that, and one of the ideas was to supply the map programmatically and for that, I found the link I originally showed in my original post, which has the following advice, from Constant, the support technician:
Your code is mostly correct. You only need to use the ChoroplethMapDashboardItem type to configure the item.
protected override XDocument LoadDashboard(string dashboardID) {
var dashDoc = base.LoadDashboard(dashboardID);
Dashboard d = new Dashboard();
d.LoadFromXDocument(dashDoc);
foreach( var mapItem in d.Items.OfType()) {
if(mapItem.CustomShapefile.Url != null) {
mapItem.CustomShapefile.Url = @"c:\Work\Projects\Work Projects\ASPCoreDashboard_Framework\ASPCoreDashboard_Framework\App_Data\WorldCountries.shp";
}
}
return d.SaveToXDocument();
}
This is why I was asking how I could override a method, in this case, the LoadDashboard method. Looking at our DevEx wrapper, I didn’t find a way on how to do it, because I simply don’t know. 🙂
I have attached a picture for you to have an idea. You see the error in an item on the left of a map, so, this item is an identical map which you see on the right. It worked in one, and not in the other. This is not the rule, sometimes the one on the left shows up, the other doesn’t. Sometimes none shows up. Sometimes both show just fine.
Anyway, my main issue is with the error stating the document is null by the time the Dashboard is showing the map. It is intermittent and sometimes shows them all fine, but some doesn’t.
If you could help me find out why this happens, it would be even better.
By the way, I have had a collateral effect from this error, which is that apparently I loose the reference to Wisej, and this is explained in the following post, which is still an issue which I haven’t been able to fix:
https://wisej.com/support/question/uncaught-referenceerror-wisej-is-not-defined
Sorry for the lengthy answer, but I have a feeling that something is getting lost in the AspNetControl and I just don’t know how to debug it.
Hopefully you will have an idea of what we could try.
Cheers.
Ivan
Thanks Cristian,
now I got it. It happens in a UserPopup, that was the missing piece for me to understand it.
I can confirm it´s a bug, related to a different fix in that area.
We´ll fix it and inform you when it´s released.
Best regards
Frank
ok Frank, it was less simple than I expected.
I attach a sample project.
Click the “start menu”:
click on project text with left and right button
with wisej 2.2.44 right work
with wisej 2.2.46 right don’t work
Best
Cristian
Hi Ivan,
You can find a sample that overrides IEditableDashboardStorage here: https://github.com/DevExpress-Examples/aspxdashboard-how-to-load-and-save-dashboards-from-to-a-database-t386418/blob/60da85f6c76f65c2bf5668d3a6d51d06532112ff/CS/DataBaseEditaleDashboardStorage.cs
You can apply this to your dashboard by doing something like: this.dashboard1.SetDashboardStorage(new DataBaseEditaleDashboardStorage(“MyConnectionString”));
I’m not exactly sure what you’re trying to accomplish, but this should set you in the right direction for overriding the class!
HTH,
Levie
Hi Cristian,
I have verified this and also tested with 2.2.44 and 2.2.46.
Both versions don´t fire Click on Right Button which is correct.
Clicking the right button in browsers usually fires “contextmenu”.
If you want to handle the right button click you can use the MouseClick event.
Use e.Button to determine which button was used.
Best regards
Frank
Hi Frank,
All controls. Now I have installed the 2.2.44 and it’s work, the 2.2.46 not
it is easy, for example create a Label and in the check the Click event.
If click you click with right button of the mouse don’t fire, if I click with left it works
best
Cristian
Hi Marcelo,
the build in AutoComplete list is a native browser functionality and outside of our control.
If you want to handle the event you might better implement a custom autocomplete list with a UserPopup.
Best regards
Frank
Hi Cristian,
right clicking on which control?
Can you please share some more details or a sample?
Thanks in advance,
Frank
Hi Andi,
any chance to wrap up a test case for us?
Best regards
Frank
Hi Angelo
you can find solutions and a sample in this support thread:
https://wisej.com/support/question/url-arguments
Best regards
Frank
There is nothing in Wisej that can break VB.NET and there is nothing specific for VB.NET in Wisej. For us it’s just .NET either Framework or Core or 5, 6, 7, etc…
HTH
Please find sample project attached. It is my original project with empty bin folder.
