All Answers

0 votes

Thanks for your reply! If I understand correctly, we cannot turn off the plus or minus buttons. Like in the screenshot, but without the additional dropdown panel? I used a custom editor, which added a NumericUpDown control with the necessary settings.

0 votes

I would recommend checking out the System.ComponentModel documentation: https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.defaultvalueattribute?view=netframework-4.8

 

It’s important to note that setting the DefaultValue attribute does not set the value of the property. It’s used in the designer for resetting the property to a default value and serialization.

  • Levie (ITG) answered Apr 20, 2020 - 4:04 pm
  • last active Apr 20, 2020 - 4:04 pm
0 votes

Hi Dmitry,

It would make sense to use a backing field (see attached project).

 

I’ve also attached two ways to do the validation checking.

The first way is checking in the property setter.

The second way is using the IntegerValidator attribute (see attached).

 

Let me know if you have any other questions!

 

Best,

Levie

0 votes

Hi Markus,

SelectOnEnter is now (starting with Wisej Dev Build 2.1.56)
available for TextBoxes, ComboBoxes, UpDownControls and DateTimePickers.

Best regards
Frank

0 votes

Hi Page,

this issue was logged as #2228 and a fix is included in the latest Wisej development build (2.1.56).

Best regards
Frank

0 votes

The issue has been fixed and will be available in the next  build!

Alternatively, you can move the ListViewSubItem.Control assignment to below the ListViewItem and SubItem parent assignments. For example:

ListViewItem listItem = new ListViewItem();
var subComboBox = new ListViewSubItem();
listItem.Text = "Item x";
listItem.SubItems.Add(subComboBox);
listView1.Items.Add(listItem);
subComboBox.Control = new ListViewComboBox();

 

Let me know if you have any issues!

Best,

Levie

  • Levie (ITG) answered Apr 16, 2020 - 6:15 pm
  • last active Apr 16, 2020 - 6:16 pm
0 votes

Hi,

Thanks for reporting the issue. I’ve logged it and will let you know when there’s a fix! You might also want to take a look at using ComboBoxes within the DataGridView.

Best,

Levie

0 votes

Hi Edmond,

yes that should be no problem. We are running 1.X and 2.X apps on our demo server without any issues.

Best regards
Frank

0 votes

The colored bar under the selected tab button (the state is “checked” since it’s actually a radio button system) is animated in the Material-3 theme so it’s done using the css style which allows the theme to inject custom css. See screenshot attached. The style is applied with the state BarTop + Checked.

For the ToolTip widget, select it in the tree then change the Default properties: placementMethod (see placementMethod: http://www.qooxdoo.org/current/api/#qx.ui.core.MPlacement) to “pointer” and position to “bottom-center”.

You can also change the offset. Can use offsetTop, offsetLeft, offsetRight, offsetBottom or a single “offset” property as an array [t,r,b,l], i.e. offset: [10,0,0,0] for offsetTop: 10. You may have to use the editor since not all the properties are hardcoded in the theme builder because while the styles are limited to CSS, the properties are unlimited and each widget class may add any number of themeable properties.

HTH

  • Luca answered Apr 14, 2020 - 4:20 pm
0 votes

If HttpContext.Current returns a value in Page.OnLoad() when deployed it means that the IIS server setup doesn’t have WebSocket enabled. Wisej works either way. But when WebSocket is enabled, the HttpContext is only available when the session starts (in Program.Main) since the first load is HTTP. After that it switches to WebSocket and the HttpContext is not available.

Additionally, Wisej includes automatic impersionation (see https://wisej.com/docs/2.1/html/Configuration.htm “impersonate” setting in Default.json). When impersonate is true, the app uses the client’s credentials. The user info is available at Application.UserIdentity, Application.User, Environment.UserName, Environment.UserDomain.

HTH

  • Luca answered Apr 14, 2020 - 1:23 pm
0 votes

HttpContext.Current return null. Am I doing anything wrong? I’m trying to access it on the Load event on my first page.

  • Guest answered Apr 14, 2020 - 7:27 am
0 votes

Controls don’t have a “ToolTip” property. You see it in the designer because of the ToolTip component which is a property extender (System.ComponentModel.IExtenderProvider). It’s similar to the other extenders we have: Bubbles, Animation, StyleSheet, all panels, etc. These components add properties to other controls at design time.

At runtime you can set those properties using the component:

this.toolTip.SetToolTip(this.button, “Test”);

For data binding you need an actual property. You could add a property string ToolTip { get; set; } and in the setter get the form using FindForm(), get the tooltip extender and set the value. Another way is to extend the wisej controls like the sample attached and code below:

 

public class MyButton : Button
{
  [DefaultValue(null)]
  public string ToolTip
    {
      get { return this._toolTip; }
      set
      {
        if (this._toolTip != value)
        {
          this._toolTip = value;
          Update();
        } 
     }
   }
   private string _toolTip;

   protected override void OnWebRender(dynamic config)
   {
     base.OnWebRender((object)config);
     config.toolTipText = this.ToolTip;
   }
}

 

  • Luca answered Apr 13, 2020 - 10:48 pm
0 votes

When the application start you can access the Request object like this: HttpContext.Current.Request.

  • Luca answered Apr 13, 2020 - 10:29 pm
0 votes

This is the link to the same question with the sample code attached.

https://wisej.com/support/question/application-navigate-and-post

You cannot use QueryString, that is for GET arguments in the URL.

POST is sent as a data stream and doesn’t not exist past the first request. You must read the stream (data, see example attached) using a server side handler, which can be anything you like: PHP, ASP.NET, ASHX, etc. Wisej doesn’t process those requests since it’s Single Page Application (SPA) system that is loaded by the first page, default.html, or default.php, or default.aspx, or any other html page that is processed by the server.

The example attached shows how to transfer custom data of any kind in any format to the wisej application. The syntax is C# but it’s simple to change it to VB:

<% @Page Language="VB" %>

 <script>
 Wisej.userData = {
  name: "<%=Request.Form("Name")%>",
  lastName: "<%=Request.Form("LastName")%>"
 };
 </script>

 

  • Luca answered Apr 13, 2020 - 10:27 pm
0 votes

googleMap1 is not to google map object.  See other answer to the same question, or see example below.

 

https://developers.google.com/maps/documentation/javascript/examples/polygon-simple

The map object in the extension is “this.map”. The javascript is  the same shown on the google page. You can either write javascript code or in C# use:

this.googleMaps.Eval(@"
    var bermudaTriangle = new google.maps.Polygon({
          paths: triangleCoords,
          strokeColor: '#FF0000',
          strokeOpacity: 0.8,
          strokeWeight: 2,
          fillColor: '#FF0000',
          fillOpacity: 0.35
        });
        bermudaTriangle.setMap(this.map);
");


Or send a small sample project showing what you need to do.

  • Luca answered Apr 13, 2020 - 10:20 pm
0 votes

https://developers.google.com/maps/documentation/javascript/examples/polygon-simple

The map object in the extension is “this.map”. The javascript is  the same shown on the google page. You can either write javascript code or in C# use:

this.googleMaps.Eval(@"
    var bermudaTriangle = new google.maps.Polygon({
          paths: triangleCoords,
          strokeColor: '#FF0000',
          strokeOpacity: 0.8,
          strokeWeight: 2,
          fillColor: '#FF0000',
          fillOpacity: 0.35
        });
        bermudaTriangle.setMap(this.map);
");


Or send a small sample project showing what you need to do.

 

  • Luca answered Apr 13, 2020 - 10:19 pm
0 votes

I just realized that I was on an old version 2.1.22. Not my normal work computer. When I upgraded the problem disappeared.

Sorry about that,

Wilfred

0 votes

Yes in an IFrame. Do they need to interact?

  • Luca answered Apr 11, 2020 - 12:17 am
0 votes

Hi Frank,

thank you! This will be a very useful enhancement for us. Do you have any estimate on when this feature will be available (next release or later)?

Thanks and regards

Markus

0 votes

Hi Luca,

Sooo easy. It works well and uncomplicated.

Didn’t think about this.

Mille Gracia.

Thanks 🙂

Showing 4981 - 5000 of 11k results