All Answers

0 votes

Hi Frank,

Any new’s with the Accordion panels dock position?

Thanks

Orel.

0 votes

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

  • Darren answered Sep 11, 2018 - 9:55 pm
0 votes

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

  • fadeIn
  • fadeOut
  • bounce
  • tada
  • blink
  • slideLeftIn
  • slideRightIn
  • slideLeftOut
  • slideRightOut
  • popIn
  • popOut
  • shrinkHeight
  • growHeight
  • shrinkWidth
  • growWidth
  • shrink
  • grow
  • slideUpIn
  • slideUpOut
  • slideDownIn
  • slideDownOut

HTH

  • Tiago (ITG) answered Sep 10, 2018 - 12:50 pm
  • last active Sep 10, 2018 - 12:56 pm
0 votes
In reply to: Database Binding

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.

  • Tiago (ITG) answered Sep 10, 2018 - 12:06 pm
  • last active Sep 10, 2018 - 12:07 pm
0 votes
In reply to: Chunked file uploader

So I ended up reworking it again. I switch most my javascript out to wired in resumeable.js which seems to work much better.

0 votes
In reply to: Chunked file uploader

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.

0 votes
In reply to: Geolocation

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.

0 votes

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
  • Chris answered Sep 6, 2018 - 12:38 pm
  • last active Sep 6, 2018 - 12:40 pm
0 votes
In reply to: Geolocation

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.

0 votes
In reply to: Geolocation

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?

0 votes

With the eye uncheck,  i not face the issue

Thank You

0 votes

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

 

 

  • Luca answered Sep 4, 2018 - 10:38 pm
0 votes

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.

 

  • Luca answered Sep 4, 2018 - 5:49 pm
0 votes

I face the same issue, why happen this?  Do you have a solution?

 

0 votes

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

  • Tiago (ITG) answered Sep 4, 2018 - 5:08 pm
  • last active Sep 4, 2018 - 5:08 pm
0 votes
In reply to: Geolocation

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.

 

0 votes
In reply to: Geolocation

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?)

0 votes
In reply to: Geolocation

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

  • Tiago (ITG) answered Sep 4, 2018 - 3:13 pm
  • last active Sep 4, 2018 - 3:14 pm
0 votes

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.

  • Tiago (ITG) answered Sep 4, 2018 - 10:20 am
  • last active Sep 4, 2018 - 3:04 pm
0 votes

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.

  • BJORN DE KEYSER answered Sep 4, 2018 - 10:11 am
  • last active Sep 4, 2018 - 10:40 am
Showing 6821 - 6840 of 11k results