Hi Frank,
Any new’s with the Accordion panels dock position?
Thanks
Orel.
Hi Edmond,
I’m not sure what you mean by pop-up window, but you can do this with a regular wisej window and, as you suggest – a timer.
Example attached.
Regards,
Darren
Hi Edmond,
After you drop the animation control, select the control you want to animate, go to Properties and under Appearance thers will be a new item Animation. Unfold it , select Name and drop down the list, just like in the attached screen shot. Now select the one you want to use.
As per Wisej 1.5.12 you have
HTH
Hi Victor,
Databinding in Wisej is just like databing in WinForms. There are a lot of resources about WinForms databing, namely Databinding with WinForms and Windows Forms Data Binding.
In the GitHub repository Wisej-examples, there is a DataBinding example that includes two databing projects. The WinForms project was ported to Wisej. You can compare both projects and see how similar they are.
Anyway the intent of this sample is to show that Wisej fixes a long standing issue with WinForms simple databinding: a databound control isn’t notified of changes to the bound property. In this example you can compare the behaviour of WinForms vs Wisej:
1) Click on the All Bindings button
2) Change Ella FITZGERALD last name
On WinForms you can see the last name you typed gets capitalized on DGV but not on the TextBox, because the later isn’t notified of the change
On Wisej you can see the last name you typed gets capitalized both on DGV and on the TextBox.
So I ended up reworking it again. I switch most my javascript out to wired in resumeable.js which seems to work much better.
I just thought I would share. I got this working by creating a custom httphandler. It is a lot faster then my previous attempt and I believe it is way less intensive on wisej because I believe it was sending so many events that it was using up way too much cpu.
I was getting max 10mb on my local machine and after these changes it went up to 22mb.
Hi again António,
Please note that some browsers (if not all) only support location requests on an HTTPS web page
Starting with Chrome 50, Chrome no longer supports obtaining the user’s location using the HTML5 Geolocation API from pages delivered by non-secure connections. This means that the page that’s making the Geolocation API call must be served from a secure context such as HTTPS.
Hi , can you provide some more info on adding the namespace, where should I put it.
When I add it I get lots of errors from all the forms in the application as various events are missing, i guess its intefering with the normal wisej namespace.
Also
Where do you put this line in the webconfig , the handlers I am guessing , but does it replace the normal wisej handler ?
<add name="wisej" verb="*" path="*.wx" type="Wisej.Core.HttpHandlerRequiresSession, [Assembly Name]"/> Assembly name I presume is the fully qualified name of your project assembly ? I am working in vb.net
Hi António,
I presume that by “run on the server” you mean open the web page on a browser running on the server.
Geolocation API is an HTML5 feature used by JavaScript code that runs on the browser, provided the browser is allowed to access the location. I presume the problem you are facing is the lack of browser’s permission.
Please go to https://www.w3schools.com/html/html5_geolocation.asp and click the blue button Try it. The browser should ask your permission to access the location.
It’s working now! Thanks!
But when I run on my pc it returns the coordenates but on the server IIS always return zero. I’ve tried on two servers. What could cause that?
With the eye uncheck, i not face the issue
Thank You
Hi Dino,
You are also probably using an SVG image. The problem is that IE11 doesn’t support aligning svg backround images so in the designer you always see it centered. It will be aligned correctly in Chrome or Edge or FireFox at runtime.
Otherwise you can use PNG or GIF images, in which case they are always aligned correctly. The Wisej.Web.Label control supports BackgroundImage, Image, ImageSource, ImageIndex, ImageList and ImageKey, as well as ImageAlignment and TextAlignment. Also, by design, it doesn’t resize the image and the text and image can overlay when using the same alignment. If you need to resize an image, simply assign an ImageList where you can set the size, even if you don;t use images from the image list.
See images attached. The first is a label with an avg icon (aligned left but shown in the middle) and text aligned in the middle. The second icon+label is the same but using a png. The other screenshot is the result in Chrome.
HTH
It’s by design, that’s also the standard behavior of VS designers, otherwise you can’t select the hidden control by clicking on it. Wisej added a button to the Wisej designer bar at the bottom (looks like an eye and is selected by default). It lets you hide/show invisible controls.
When displaying a user control on a parent container, the hidden controls are hidden. See the image I get with your test case.
I face the same issue, why happen this? Do you have a solution?
Hi again Andrew,
You can also put each application in its own folder and in IIS convert each folder to an application.
You can even put web.config and favicon.ico files on the root so they are shared by all applications like you can see in the attached screen shot
Hi António,
Please note that awaitable methods were introduced in Wisej 1.5.12 as you can see on Wisej Release Notes 1.5.12
WJ-9099 – Enhancement – Wisej.Ext.Geolocation: Added awaitable method.
Thanks for your answer but i get this error
private async void buttonCurrentLocation_Click(object sender, EventArgs e)
{
var position = await geolocation.GetCurrentPositionAsync(); <—- Error
this.maskedTextBoxLat.Text = position.Latitude.ToString();
this.maskedTextBoxLng.Text = position.Longitude.ToString();
}
Error 47 ‘Wisej.Web.Ext.GoogleMaps.GoogleMap’ does not contain a definition for ‘GetGeocodeAsync’ and no extension method ‘GetGeocodeAsync’ accepting a first argument of type ‘Wisej.Web.Ext.GoogleMaps.GoogleMap’ could be found (are you missing a using directive or an assembly reference?)
Hi António,
Pleae have a look at our Wisej-Examples GitHub repository. The GoogleMaps example includes an example of GeoLocation, namely on MapPage.cs, the CurrentLocation button click handler
Snippet
var position = await geolocation.GetCurrentPositionAsync(); this.maskedTextBoxLat.Text = position.Latitude.ToString(); this.maskedTextBoxLng.Text = position.Longitude.ToString();
HTH
Hi Andrew,
You can have several html/json pairs on the same project (i.e. folder). Each pair is a Wisej application, although I prefer to call it sub-applications because they are part of the same project.
So you can have a single Wisej project with several (sub) applications. It doesn’t matter whether they are all in the same folder or on different folders.
In Wisej-Examples GitHub repository there HtmlJsonAndMain solution that explains and shows how this can be done. Please read the README.md and have a look at the MultiHtml project.
Aha ok, I will check and let you know if I succeed.
the files are indeed already there so that looks already ok.
(*) many thanks I succeed to run the application, now I can continue testing.
