All Answers

0 votes

Hi Miguel,

for a quick solution before the events are available, you can also anchor your control to the bottom.

The desktop control displayrectangle does not include the taskbar when it is shown.

Hope that helps.

Best regards
Frank

0 votes

Hi Mark,

please try following the tips Luca has provided here:

https://wisej.com/support/question/javascript-extender-code-and-element-id

If it does not work, please provide us with a small sample.

Thanks in advance !

Best regards
Frank

0 votes

Hi Miguel,

I have logged enhancement request WJ-7965. We´ll inform you when the events are available.

Best regards
Frank

0 votes

How big is the stream?

Try to load the stream in the image like this:

var image = Image.FromStream(stream);

this.picture.Image = new Bitmap(image);

When you use Image.FromStream() directly the image may not get fully loaded, System.Graphics may keep the stream open and read the image as needed. Usually new Bitmap(image) solves this issue – if this is the issue.

 

 

  • Luca answered Jan 25, 2017 - 10:08 pm
0 votes

Nice addition!

Frank wrote a tool to auto generate the class so now you can use it at runtime like this:

this.pictureBox1.ImageSource = Wisej.Ext.FontAwesome.Icons.Archive;

The const includes the full prefix.

  • Luca answered Jan 25, 2017 - 9:54 pm
0 votes

Hi guys,

I followed Luca’s suggestion for static string constants, so you can use the attached if you like.

Best,

Alex

0 votes

Hi Alex,

we will provide a set of const definitions for the Icon Libraries in the next build.

Best regards
Frank

0 votes

The designer shows the icons and a preview in the file source editor.

In code you have to use the name and since they are all embedded resources there is no automatic enumeration. Also an enumeration or anything that compiles wouldn’t work with names with dashes “arrow-circle-down.svg”. You’d have to create a static class with static variables with the names.

public static class Resources
{
public const string ArrowCircleDown = “arrow-circle-down.svg”;

….
}

ModernUI has 1276 of them – maybe a tool or macro for VS would work.

 

  • Luca answered Jan 25, 2017 - 5:41 pm
0 votes

Yep, logged the bug. This is the workaround:

column.HeaderCell.ToolTipText = “TOOLTIP”;

 

  • Luca answered Jan 25, 2017 - 3:19 pm
0 votes

Hi Kay, I see it in IntelliSense. Sometimes Visual Studio gets stuck.

 

  • Luca answered Jan 25, 2017 - 3:15 pm
0 votes

Solved myself ….

Datagridviewcolumn.DefaultCellStyle.Format is existing, but not displayed in Intellisense.

 

  • Kay answered Jan 25, 2017 - 2:55 pm
0 votes
In reply to: Pictures on listview

I tried this code:

private void Window1_Load(object sender, EventArgs e)
{
var j = new ListViewItem();
j.Name = “1”;
j.Text = “1”;
j.ImageSource = “/icon.png”;
j.SubItems.Add(“some text”);

this.listView1.Items.Add(j);

j = new ListViewItem();
j.Name = “1”;
j.Text = “1”;
j.ImageSource = “/icon.png”;
j.SubItems.Add(“some text”);

this.listView2.Items.Add(j);

j = new ListViewItem();
j.Name = “1”;
j.Text = “1”;
j.ImageSource = “/icon.png”;
j.SubItems.Add(“some text”);

this.listView3.Items.Add(j);

j = new ListViewItem();
j.Name = “1”;
j.Text = “1”;
j.ImageSource = “/icon.png”;
j.SubItems.Add(“some text”);

this.listView4.Items.Add(j);
}

 

 

It works well. Can you please verify that /icon.png is present in the root of the project? Also do you see a broken image or the item doesn’t show at all? Can you provide a small test case?

 

 

  • Luca answered Jan 24, 2017 - 10:56 pm
0 votes

Thank you for the help.

I removed the insights from the parent web and it worked.

0 votes

Here is the attached sample on how to have multiple entry points within the same application. It can be done in many ways, this is one of them, reusing the same Default.html and using the page directly instead of calling a Main method on a different startup.

You can start the different pages:

htt://localhost/

http://localhost/Page1

http://localhost/Page2

http://localhost/Page3

http://localhost/Page4

Each one is an independent page within the same application. Wisej supports this to let a large system provide multiple views to different users. For example, a corporate ERP system may have a /Configuration subsystem, or a /Accounting subsystem, or a /Reports, or /Public, etc.

Each page starts a new session. Sharings sessions among different pages makes no sense and it would create a lot of problems at the first refresh or websocket update for the following reason: if you open a form or a dialog on /Page1 and then refresh /Page2 then the same form or dialog that was opened on Page1 would be shown on /Page2 when the state is restored.

Bypassing the entry point or entry form using  the URL also doesn’t make sense in a stateful web application since it would allow a user to break the application’s workflow and open a form or dialog out of context.

In my view web sites should be built using web site technologies based on concatenating strings and returning html to the browser – maybe you can sprinkle them with javascript widgets, jquery, etc. Wisej is not the right technology for web sites based on html pages.

HTH

Best,

Luca

  • Luca answered Jan 24, 2017 - 5:48 pm
  • last active Jan 24, 2017 - 5:49 pm
0 votes
In reply to: Address Lookup

Hi Ewan,

Getting to it. Sorry for the long wait.

Best,

Luca

  • Luca answered Jan 24, 2017 - 5:22 pm
  • last active Jan 24, 2017 - 5:23 pm
3 votes

If you put a wisej app (or any other app) inside another app, IIS inherits all the settings of the parent app. You should check the parent app’s web.config, if it tries to load MicrosoftAI then you must add it to the child app /bin (which may trigger new errors for more missing assemblies).  Another option is to remove the inherited values in your web.config. Which can be a nightmare depending on the parent app.

However, this is not a Wisej issue, it’s ASP.NET and IIS. Wisej doesn’t need MicrosoftAI and it can run at the root or as a child app without any problem – unless the parent app creates the problems. 🙂

Best,

Luca

  • Luca answered Jan 24, 2017 - 5:18 pm
0 votes

Looks like you have the IntelliTrace feature enabled https://msdn.microsoft.com/en-us/library/dd572114.aspx

You are probably breaking at handled exceptions from System.Web. There are many of those coming from the system at startup. Try to turn off IntelliTrace and also try with a small sample app. This looks like Visual Studio Enterprise issue.

  • Luca answered Jan 24, 2017 - 4:32 pm
0 votes

Hi Guenter,

good news. We found a way to add this feature to the TinyEditor extension.

Please redownload and rebuild it from our extension page.

Then you can use this.editor.ExecCommand (“insertHTML”, “<b>Test</b>”); to insert any kind of HTML at current position.

Find a list of all commands here: https://developer.mozilla.org/en-US/docs/Web/API/Document/ExecCommand

Hope that helps.

Best regards
Frank

0 votes

Hi Mark,

For the invariant culture you don’t have to create it. It’s always available as CultureInfo.InvariantCulture.

The problem is what I thought. The string you are using is not a valid es-MX date string. See localization here: https://wisej.com/docs/html/Localization.htm – the last part about the browser.

Basically, if you set the culture to es-MX then Wisej will update the culture on the thread, just like it would work if you were using an application on a es-MX installation of Windows. If your code needs to handle invariant data, then you should use CultureInfo.InvariantCulture. That’s normal for localized applications.

Best,

Luca

 

  • Luca answered Jan 24, 2017 - 12:41 am
0 votes

If I use….

‘Dim d As DateTime = Date.Parse(hf, CultureInfo.CreateSpecificCulture(“InvariantCulture”))….. now works great on the server.. but now the error is in my developer computer. 🙁

So strange…

Some idea?

  • Mark Villela answered Jan 24, 2017 - 12:07 am
Showing 9721 - 9740 of 11k results