Luca it would be cool if you turn this in extension!
it is possible to have a tutorial how do you have create this demo using this external js?
thanks
Cristian
Something like this?
http://demo.wisej.com/smoothie
Uses this:
Will probably turn it into an extension.
Hi Mark,
thanks for your feedback. 😉
I do also see these two approaches, both should work really nice with Wisej. Which one to pick is a matter of discussing the pros and cons of each approach. I am not aware of a tool that converts C# to JS as you describe it.
Can you explain a bit further what you mean with “high frequency”? Maybe you can simply give it a try because I suspect that the GDI drawing part will indeed be the same in Wisej. Alternatively, you might want to evaluate D3, which is commonly used for such tasks:
https://d3js.org/
Best wishes
Thomas
I get an error when I try to build the example that is in /extensions.
If I wanted to create a dll with all my user controls for wiseJ applications, are you saying that I would pick a “Class Library” project. Would I need to do anything that is in the readme.pdf file in the AspNetControls zip file if I am just trying to do user controls and not do a wrapper control?
I created a really simple test app with a user control library, but it will not compile. It is a single user control with a textbox
Error BC30652 Reference required to assembly ‘System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ containing the type ‘ScrollableControl’. Add one to your project. userControls C:\Trash\wiseJ_Test\Test\userControls\ucTextBox.Designer.vb 3 Active
Yes, Wisej is fully compatible with Visual Studio 2017.
We are still brushing up the installer to adapt a few changes Microsoft introduced for 3rd party add-ons. See this post on how to fix these things in the meantime:
https://wisej.com/support/question/toolbox-controls-missing
Best wishes
Thomas
Hi Ken,
Wisej has two types of licenses, a developer license for your machine and a deployment license per server instance. It seems as if the license for deployment is missing or not correctly activated.
To review our license policy, please see these links:
Don’t hesitate to get back to us if you have further questions.
Best wishes
Thomas
First off, thanks for all the help on this issue.
I believe I figured out the problem and it wasn’t WiseJ related.
I had a diagnostic log being written to the \bin folder. Every time this log was written to, because it is in the bin folder, the application thinks that it needs to reset the application. This would invalidate the session.
Once I stopped writing to the diagnostic log, the invalid session issue went away.
I thought I would post the “fix” in case anyone else made the same mistake that I did.
Shawn
With VS 2017 Microsoft is trying to force developers to use VSIX to install extensions. But VSIX is very limited when it comes to install assemblies in the GAC (for the designer) and to perform very basic installing operations, like adding shortcuts, startup apps (auto updater) and so on.
Apparently there is a way to make it work with the release (we tried with the RC only) and will will try again.
At the moment the only way is to do it manually:
Right click the toolbox
Add Tab “Wisej Controls”
Right click the new tab, Select Items…
Browse to Wisej.Core.dll and Wisej.Web.dll and add both.
It will select the tools automatically.
Click OK.
The system dialogs (file, font, color) are not there yet. Almost there.
Yes I do.
Thanks for the help.
I am running my app pool under a different user.
Thank you. Got the sample.
The custom drop down works well when you don’t use a UserPopup inside the dropdown. Which is correct. The user popup is meant to be used programmatically this.userPoup1.ShowPopup() to show a popup panel in relation to a control.
There is a bug when displaying a context menu in a popup, it seems that when the popup is closed, the context menu is reopened at 0,0. Will log and get it fixed in the next update hopefully.
For the ComboBox in the drop down, I cannot reproduce. I get the data in the drop down. There is a sample I linked before with a complex drop down including datagrids with data. Can you attach a test case showing the other issue you mentioned?
Hi Edmond, I tried both TopDown and BottomUp and Scroll=Both and AutoScroll=true. See screencast below. It seems to work OK.
You can add any property or event to the wrapper and redirect it to the instance of the report viewer. The same way you’d do with ASP.NET.
The wrapper wraps the ReportViewer class, which is exposed through the typed WrappedControl property. That is the ReportViewer instance. You can set all of the properties directly to the WrappedControl instance. The problem is that ASP.NET controls don’t exist outside of the HTTP request, which is represented in ASP.NET by the page cycle: Init, Load, etc. You can affect the control only while processing Init or Load. There is a lot of documentation about the ASP.NET page cycle.
The Wisej AspNetWrapper class exposes the events PreInit, Init, and Load. You can either set the viewer property when handling those events, or you can extend the viewer wrapper class and add the properties and store the values in memory and then wait for OnInit, or OnLoad to update the viewer instance.
HTH
/Luca
Wisej tries to save the license info on the machine and in the project. It does it only once when the app loads.
If it cannot write in the project it doesn’t show any error.
If it cannot write in the shared application folder it does show the error, otherwise you’d never know that it couldn’t write.
The machine location is /ProgramData and IIS_IUSRS should have the permission by default. If you change the Application Pool you may have to add the new application pool user to the group. Usually the problem is with the project folder itself that it doesn’t have the IIS_IUSRS permissions.
I just tried to install a new 2016 server with IIS, followed the normal process, added a Wisej app with a license, didn’t change any permission, the apps runs without issues. The license is saved in \ProgramData\IceTeaGroup\Wisej since it doesn’t have permissions to write to the project’s folder.
/Luca
Try to add to Default.json
“validateClient”: false
Let me know. It may be a client fingerprint issue. If the request is not validated Wisej will invalidate the session.
Do you mean a drop down with a checked listbox?
This error appear to be happening when the timer fires to refresh the datagrids. It doesn’t happen in development, only when on my test server.
If the timer fires and nothing is updated it doesn’t error but if a datagridview has rows added to it (via .datasource=xxx), then it throws the error.
I have included the error message that I am getting and the default.json settings also. This issue only appears to happen when a timer is set.
This morning, the first test took less than 1 minute for the message to pop up. I did a Control-F5 and it took about 10 minutes to pop up.
{
“cookieless”: true,
“startup”: “TechDesk.Program.Main, TechDesk”,
“url”: “Default.html”,
“sessionTimeout”: 1400,
“responseTimeout”: 240,
“debug”: true
}
Hi Stephane,
For the ContextMenu you asked, you can always use the EventClick event. If Button = Right, you can create a ContextMenu and show it there. You can have different ContextMenus depending on the event that was clicked. For example:
private void Calendar_EventClick(object sender, EventClickEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
var myMenu = new ContextMenu(); // or put your custom-designed ContextMenu
myMenu.MenuItems[“EDIT”].Enabled = e.Event.Editable;
myMenu.MenuItems[“COPY”].Visible = e.Event.Start < DateTime.Now;
if (e.Event.UserData.IsPending)
{
myMenu.MenuItems.Add(“Reschedule”);
}
myMenu.Show(e.Location);
}
}
Best,
Alex
