Thanks Alaa – the reason we’re using the Label is because we have multiple links in the one label. We’re also using something like <a href=”google.com” target=”_blank”>Goto Google</a><br />Here’s another link:<br /><br /><a href=”somewebsite”>Some Web Site</a>
Can the LinkLabel have multiple links?
We store sessions in a SQL table and as soon as a user starts a new session, we disable the existing session – it doesn’t log them out, or close their tab, we just check the “session” whenever they click anything and if they’ve been logged out, they’re told and the action is ignored.
We charge clients a per seat fee and don’t want the same user logging in to multiple tabs, browsers or computers.
You could check the table to see if they are logged in and block them if they are, however the reason we did it how we did was because we can’t know if they close the browser. We’re yet to find a way of listing all the active session id’s unfortunately.
Hi Neil,
You can actually use the LinkLabel control, it’s much better suited for using as links instead of using a regular Label control.
You can control the link decoration in a LinkLabel by setting the LinkBehavior Property to “HoverUnderline”, and you can use Application.Navigate to control your navigation rather than relying on HTML.
I have attached a sample.
Let me know if you need any additional help.
Best,
Alaa
Hi Frank – we’re also experiencing this issue. The data is actually held in the DataGridView but not displayed. When we refresh a grid with say 3,000 rows (one column) a lot of rows will be blank, but it’s always the last n rows. We’re yet to replicate it consistently, but if we do, we’ll let you know.
To keep it simple, I’d replace HttpUtility.UrlEncode with WebUtility.UrlEncode (from namespace System.Net).
Cheers, Gerhard
You have to handle it in a javascript event handler. You cannot handle synchronous events on the server.
When you run the app in Android Studio, are you running the app in an emulator, or did you connect your physical device to the computer? If you’re running in an emulator, certain actions like vibrate won’t work- you have to use a physical device.
You said that native alertboxes from wisej don’t work- are they being triggered by mobile events? If you make a simple button that you can click on to display an alertbox, does that work?
I suspect that Webview is functioning the same as if you had opened your mobile app in a web browser on the desktop. Just like how mobile-specific actions don’t work in the desktop web browser, I would expect them not to work in Webview. If you create something simple that doesn’t rely on mobile-specific actions, like a button that you can click on to display an alertbox, I would expect it to work on Webview, desktop browser, and mobile.
You need to use the Wisej Mobile Android app in order to publish on Google Play. The whole point of our Wisej Mobile Hybrid app is to provide services to the Wisej Mobile Extension exactly for the things that aren’t working for you. You’re simply running a web site in a WebView.
Impersonation only works if the client user machine and the server are on the same AD. It’s a Windows feature. You can also start impersonation in your app.
Wisej.NET doesn’t and can’t change the way IIS and Windows manage authentication. What you find in User and UserIdentity is what is returned by ASP.NET and IIS.
cookies don’t provide built in encryption. If your password is already encrypted simply store it a cookie. If it’s binary usually the approach is to store it as base64.
I have tracked this down to a setting in Default.Json namely Impersonate = true
Given the web config is set up correctly for impersonation, it appears remote logins (and local logins in some cases), fail to pick up the correct user when this is set in default.json in addition, (in verson 3.0.17) with the anonymous user being picked instead, despite the anonymous user being filtered out in the web config file.
If I remove this line from Default.json everything works again.
As it was not happening before; I am not sure whether this is a bug.
Also is it possible to define default Windows credentials in default.json, to avoid remote user’s needing to log on by entering their windows credentials?
Attempting to set this in the web config will not work.
Many Thanks
Hi Davide,
Unfortunately, we still weren’t able to reprodce this issue, try to save everything before closing the designer form and updating Visual Studio?
On that note, can you give us what version of Visual Studio you’re using and also the Wisej.NET version?
Thanks!
Alaa
Hi Huỳnh,
To answer your questions:
Attached is a modified version of your sample, it works fine now!
HTH,
Alaa
//
Hi Vincent,
We’re looking into this issue and we’ll get back to you ASAP!
Best,
Alaa
Hi Tiziano,
Thank you for your sample, there are a few things that I like to point out regarding how you’re using the background processes.
Any background service (or Hosted Service in this case) has its own separate thread, Wisej.NET’s session doesn’t exist in that thread’s scope, and since it’s not coming from the main application thread, nothing can be updated and/or pushed to the client.
You’ll have to go with another approach and see how it would update your application’s main thread.
You can follow Microsoft’s Documentation in that regard.
But the main point is, what’s happening is that when that breakpoint hits, it’s actually the service thread calling itself and since the Wisej.NET application isn’t scoped, there’s nothing to update!
It is not a Wisej.NET issue, even with a regular ASP.NET Core application this would yield the same result.
If you need additional help, we offer Professional Service packages that you can check out!
HTH,
Alaa
Hi Sascha,
Earlier this year we introduced the Wisej DemoBrowser application that showcases different demos for all controls that Wisej.NET has to offer.
In that regard, the DemoBrowser also includes all the Premium extensions and that includes EJ2 Controls .
The source code is open source too, so you can check how everything works in the background.
All premium extension controls expose the Instance parameter, so you can attach to any javascript event and route it to the server, as an example you can do something like this.kanban1.Instance.onCardDoubleClick += new WidgetEventHandler(my_event_method);
That way you can stick to writing C# code rather than having to deal with Javascript client-side code, but you can always do that too!
HTH,
Alaa
//
Hi Behzad,
The best way to change the appearance of one Control is to have a custom appearance key set to it.
However, you’ll have to use a Code editor in addition to the ThemeBuilder.
You’ll need to have a new set of appearances for both the “DateChooser” and “DateField”. These two components make the DateTimePicker you see in your application.
You can assign two completely different names to them, but make sure to adjust the DateField.List “inherit” property to your new name for the DateChooser.
As for the missing properties, you’ll have to edit the DateChooser.Day appearance, from what I understood it’s about the tile colors of the calendar, where the tile is the “Day” in the calendar.
To make it a bit simpler, I wrapped up a sample for you. please see dateTimePicker2 in Window1.cs, Default.json, and the new appearances “customDateChooser” and “customDateTimePicker”
If you need additional help with theming your application, we offer Professional Services that you can check out!
HTH,
Alaa
//
Hello Frank,
Thanks for your response. Setting up at the Theme level sets the Calendar property for the whole form. Is there a way to set the properties at control level within the form? We usually create the DateTimePicker control at runtime and hence wouldn’t know the number of DateTimePicker controls beforehand and each will have it’s own appearance.
Also, I’m trying to map the Winform Calendar properties with Wisej. I couldn’t find all the Calendar properties within the “name” dropdown in Wisej Theme builder. Can you please help me map the missing items?
Thanks
Sathya S
Mohsen,
can you please share the exact changes you made to the extension? I´ll then check and it to the original sources at GitHub.
You can post them here or send to supportATwisej.com
TIA
Frank
Hi again,
Inspected the code of the extension after downloading from github.
Now solved after adjusting the source code and attach the extension project as dependency to my project instead of nuget package.
Thanks.
PS: For instance of sharing the exception was issued in the SimpleColumnFilterPanel_Disposed of SimpleColumnFilterPanel.cs as the datagriview and datagridviewcolumn object were already disposed in SetShowFilter of ColumnFilter.cs .
Hi Ewan,
You’re able to SAML SSO 2.0 in your Wisej.NET application.
It’s also possible to use it with the newer Wisej.NET 3.0 if you decide to go with that route in the future.
HTH,
Alaa