All Answers

1 vote

Thank you for the sample. I have attached the fixed code, it’s working correctly. These were the issues with the sample code:

  • In Window1_Load the code was always setting textBox1.Text = “no cookie” since there was no else after if (c != null)
  • In button1_Click in new FormsAuthenticationTicket you were using the value as the name and setting the value (UserData) to “” so when reloading the cookie in Window1_Load this linetextBox1.Text = FormsAuthentication.Decrypt(c.Value).UserData; always set the text to “” and then it was overridden again by textBox1.Text = “no cookie”;
  • In button1_Click the cookie was created using Secure=true which works only on ssl (https) connections. Cookies set with secure are not returned by the browser on http connections.

Replace Window1.cs with attached one and it should all work fine.

 

Best,

Luca

  • Luca answered May 11, 2017 - 4:38 pm
0 votes

Thanks for your quick answer Luca.

Unfortunately I may not of explained the question/concern well so I did what you suggested made a quick test example that you can try out to see what I am talking about. First time through everything works great if you leave the page and come back everything is great if you kill vs debug session and start it over the cookie is no longer present so it isn’t actually saving.

Thanks for your help in advance.

0 votes

Not yet. We are way behind. I will have a better update in few days.

  • Luca answered May 11, 2017 - 3:44 pm
0 votes
In reply to: Mobile project

What is the status of the wisej mobile project? Is there a bet available? I am in need of it.

thanks,

gh

0 votes

What is the status of the wisej mobile project? Is there a beta available? I am in need of it!!

thanks,

GH

0 votes

Awesome will check it out once the new version is published and we are also going to wrap the report viewer as well. We’ll post the source once to the viewer once we have it working for anyone else.

0 votes

And this is the same running as a desktop application (standalone and self-hosted in a single exe) using the upcoming Wisej.Application.exe (IE or Chromium) 🙂

 

 

  • Luca answered May 10, 2017 - 11:25 pm
0 votes
0 votes
In reply to: ListView Details View

The row height is not changed automatically. You can set it using ListViewItem.RowHeight. In Winforms the ListView in details mode doesn’t wrap, it always truncates.

  • Luca answered May 10, 2017 - 10:44 pm
0 votes

Hi David,

Thank you for trying Wisej. The standard expire times makes the cookie self delete when you close the browser. I tried to add a cookie and set an expire time in 2018 and the cookie persisted correctly. However, when receiving the cookie back from the browser and inspecting the properties you will always see DateTime.MinValue because the browser doesn’t send back the expiration of a cookie. That information is not available in the browser, you get only the name and value.

Was this the issue? If not, can you send a small test?

Best,

Luca

 

  • Luca answered May 10, 2017 - 10:19 pm
0 votes

Hi Mark,

we extended your code so that the designer now loads as expected. See attached sample.
You’ll need a new version of our ASP.NET wrapper control from which the Stimulsoft implementation for Wisej is derived. Watch the builds page on our website, it will be part of the next devbuild we publish.

Best wishes
Thomas

1 vote
In reply to: Html ToolTip

Hi Stanislav,

Thank you. I have logged issue WJ-8238 for it.

We´ll inform you when it´s fixed.

Best regards
Frank

0 votes

Hi Ser,

You can have a sub-application running without websocket since it can use a different json file, but not a specific page in an app after the websocket is connected. I’ll check about the websocket surviving the session termination, we can (and should) close it.

Best,

Luca

 

  • Luca answered May 10, 2017 - 6:14 pm
0 votes
In reply to: renew license

Hi,

I have a similar problem.

My current trial license key is already expired. I am not able renew the license, and I am not able to get another new trial key, either.

Can you help?

Thanks and regards,

Felix CHAN

0 votes

Hi Dino,

I could reproduce with dev build 1.3.62 but not with release 1.3.61.

In any case it is related to this issue: https://wisej.com/support/question/datagridview-selectedrows-not-updating-correctly

It will be fixed in the next release. Will update you when it´s online.

Best regards
Frank

0 votes

Hi Shawn, it’s way behind. I will have a better update in week or so.

/Luca

  • Luca answered May 9, 2017 - 10:19 pm
0 votes

Fantastic!  – that’s sorted it.  Explanation makes sense too.

The new HTML

<html><head><title>Test Title</title></head><body><center><img src=”https://image.ibb.co/bw7Xy5/Happy_Easter_small.png” alt=”Happy_Easter_small” border=”0″ width=”480″ height=”237″></a></br><font color=’#FF5D46′><h1>Hello, World xxx!</h1></font><p>You can modify the text in the box to e ft any way you like, and then click the ‘Show Page’ button below the box to display the result here. Go ahead and do this as often and as long as you like.</p></center></body></html>

Thanks.

Steve.

  • Steve Gray answered May 9, 2017 - 2:40 pm
  • last active May 9, 2017 - 2:45 pm
0 votes

Hi Steve,

The problem is caused by the image not having a size in the html. If you add  width=”480″ height=”237″ to the img tag the size will be correct. The reason is that the HtmlPanel widget is not an IFrame, it’s embedded html in the page (in fact the <style> in the html will affect the entire page, not only the html panel), so Wisej tries to measure the content in order to display and adjust the inner scrollable panel. Since the image doesn’t have a size and the loading is async, it ends up measuring the wrong height.

I will add an issue and see if we can detect when the loading of the content is complete and resize the panel.

If you want to style only the html in the HtmlPanel without affecting the whole page, you can use the Css property or the StyleSheet source. Any css you place in there will automatically be isolated by Wisej within a parent css rule that affects only the specific panel. Also the embedded html doesn’t have a body or html tag, they are stripped before assigning the html.

HTH

/Luca

 

 

  • Luca answered May 9, 2017 - 1:47 pm
0 votes

That’s because svg images don’t have a size and for the Label we didn’t force the image size in the theme. Also, the layout of svg images works a bit differently in IE (used for rendering) and Chrome at runtime. We wanted to let labels use the image’s original size.

You can set the size of the image by assigning an ImageList to the Label (no need to use the  images in the image list) and set the size of the image list. You can assign the same image list to multiple labels, this way you can normalize the size of the images in multiple controls simply by setting the image size of the ImageList.

Buttons work the same way, except that their image size is limited in the themes.

/Luca

  • Luca answered May 8, 2017 - 8:36 pm
0 votes

FYI I couldn’t get Luca’s code to work however when I modified it by adding DesignerSerializationVisibility(DesignerSerializationVisibility.Content) Then it worked for me.

 

[Designer(typeof(TestDesigner))]
public partial class UserControl1 : Wisej.Web.UserControl
{
public UserControl1()
{
InitializeComponent();
}

[
Category(“Appearance”),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
]
public Panel WorkingArea
{
get
{
return this.panel1;
}
}

[
Category(“Appearance”),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
]
public Panel WorkingArea2
{
get
{
return this.panel2;
}
}
}

public class TestDesigner : ParentControlDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);

var control = (UserControl1)this.Control;
base.EnableDesignMode(control.WorkingArea, “WorkingArea”);
base.EnableDesignMode(control.WorkingArea2, “WorkingArea2”);
}
}

Showing 9101 - 9120 of 11k results