All Answers

0 votes

Thanks Luca,

Tried this for combobox but no result, should it work for combo’s?

cb_quota.AddClientEventListener(“keypress”, ”var e = arguments[0];if (‘0123456789’.indexOf(e.getKeyIdentifier()) === -1 && e.getKeyIdentifier() != ‘Backspace’)e.stop();”)

0 votes

Looks like a bug. Writing the cookie applies an additional escaping of the json string. You see it only on a new session because that’s the only time the cookies are reloaded from the browser. When you add the cookie it stays in the collection. It was probably added to solve (but it doesn’t) a general bug with ASP.NET cookies not being able to contain the semicolon as part of the string.

As a temporary workaround use this:

  Public Function JavaScriptStringDecode(source As String) As String
      Return source.Replace("\'", "'").Replace("\""", """").Replace("\/", "/").Replace("\t", "\t").Replace("\n", "\n")
  End Function

https://stackoverflow.com/questions/14982917/how-to-decode-a-string-encoded-with-javascriptstringencoded?lq=1

Logged as #1924, will be fixed in the upcoming (overdue) update.

 

 

 

  • Luca answered Jul 15, 2019 - 6:52 pm
  • last active Jul 15, 2019 - 6:52 pm
0 votes

That’s because you are not setting the DisplayMember so Wisej displays the result of ToString().

In your sample you set the DisplayMember on the Column but don’t set the data source, then when the control is shown you set the datasource directly on the combobox used in the cell without the DisplayMember. Change your code like this:

  • Delete DataGridView1_EditingControlShowing, it’s not necessary for the binding and you don’t need to set the datasource every time the cell is in edit mode.
  • Add this.Column0.DataSource = list; in Page1_Load.

 

  • Luca answered Jul 15, 2019 - 5:28 pm
0 votes

The error is down message is caused by the network being disconnected. VWG didn’t support WebSocket so you’d get an unresponsive app if the network was disconnected during an http request only. Wisej supports both models: real time (WebSocket) and pull (HTTP). If you have something in between  that is causing the websocket to be dropped then you get this message until Wisej automatically reconnects.

You can turn off websocket in Default.json.

  • Luca answered Jul 15, 2019 - 5:20 pm
0 votes

You can’t control the user browser keyboard from the server. You need to attach a javascript event.

 

See: https://wisej.com/support/question/input-type-problem

  • Luca answered Jul 15, 2019 - 5:18 pm
0 votes

I am attaching a video

0 votes

Thanks Glenn.

However I could not yet reproduce the error here.
Can you please describe the steps until where it fails ?

Best regards
Frank

0 votes

Thank you for the answer!

Do you think is safe to ignore this message? WebGUI didn’t have this kind of error messages…

0 votes

Please see attached project.

0 votes

Please see sample project.

0 votes

Hi David,

network down errors cannot be handled on the server side,
but on the clients side.

See

https://wisej.com/support/question/network-errors-dialogs

Best regards
Frank

0 votes
In reply to: ChartJS Format Numbers

Hi Arturo,

you want to change the font size of the DataLabel ?

chart_legend1

See here:

chart_legend2

Best regards
Frank

0 votes
In reply to: Designer Problem

Hi,

this usually indicates that something is taking too long to load for the designer.
Are you using any custom font ? Can you please share some details about the code where this is happening ?

Thanks in advance,
Frank

0 votes

Björn,

please try without the quotes:

“responseTimeout”: 1800,

Best regards
Frank

0 votes

I also tried creating a new project, drop the ribbonbar control from toolbox, then created some pages, then groups, but the same issue when I reached to creating item , please see attached screenshot.

 

Thank you.

0 votes

Hi,

I have installed a new VM, and VS 2019, then Wisej 2.0.28, and tried to open your sample project Ribbonbar from wise-examples-2.0, but it’s the same issue, please see attached screenshot.

 

Hope this can be resolved.

 

Thanks.

0 votes

Can somebody show me the code for vb.net and where to place, during form load?

0 votes

It’s not a Wisej error. It’s probably coming from your database. It seems to be an EF error.

  • Luca answered Jul 10, 2019 - 11:32 pm
0 votes

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
namespace ChartJS_Issue
{
class AlertChartData
{
public int OpenAlerts;
public int ClosedAlerts;
public DateTime Date;
}

public class OverviewSubPanel
{
public OverviewSubPanel()
{
Wisej.Web.Ext.ChartJS.BarOptions barOptions1 = new Wisej.Web.Ext.ChartJS.BarOptions();
Wisej.Web.Ext.ChartJS.OptionScalesAxesX optionScalesAxesX1 = new Wisej.Web.Ext.ChartJS.OptionScalesAxesX();
Wisej.Web.Ext.ChartJS.OptionScalesAxesY optionScalesAxesY1 = new Wisej.Web.Ext.ChartJS.OptionScalesAxesY();

this.chartOverTime.ChartType = Wisej.Web.Ext.ChartJS.ChartType.Bar;
this.chartOverTime.Dock = Wisej.Web.DockStyle.Fill;
this.chartOverTime.Location = new System.Drawing.Point(0, 40);
this.chartOverTime.Name = “chartOverTime”;

barOptions1.DataLabel.Display = true;
barOptions1.Legend.Position = Wisej.Web.HeaderPosition.Bottom;

optionScalesAxesX1.Stacked = true;
barOptions1.Scales.xAxes = new Wisej.Web.Ext.ChartJS.OptionScalesAxesX[] { optionScalesAxesX1 };

optionScalesAxesY1.Stacked = true;
barOptions1.Scales.yAxes = new Wisej.Web.Ext.ChartJS.OptionScalesAxesY[] { optionScalesAxesY1 };

this.chartOverTime.Options = barOptions1;
this.chartOverTime.Size = new System.Drawing.Size(680, 215);
}

private Wisej.Web.Ext.ChartJS.ChartJS chartOverTime;

public void LoadChart()
{
this.chartOverTime = new Wisej.Web.Ext.ChartJS.ChartJS();
this.chartOverTime.DataSets.Clear();

var openAlertsDataset = new Wisej.Web.Ext.ChartJS.BarDataSet();
openAlertsDataset.BackgroundColor = new Color[] { System.Drawing.Color.FromArgb(128, Color.Red) };
openAlertsDataset.HoverBackgroundColor = null;
openAlertsDataset.Label = “Opened Alerts”;
this.chartOverTime.DataSets.Add(openAlertsDataset);

var closedAlertsDataset = new Wisej.Web.Ext.ChartJS.BarDataSet();
closedAlertsDataset.BackgroundColor = new Color[] { System.Drawing.Color.FromArgb(128, Color.Blue) };
closedAlertsDataset.HoverBackgroundColor = null;
closedAlertsDataset.Label = “Closed Alerts”;
this.chartOverTime.DataSets.Add(closedAlertsDataset);

var list = new List<AlertChartData>()
{
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 1,
ClosedAlerts = 0
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 1,
ClosedAlerts = 0
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 0,
ClosedAlerts = 1
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 0,
ClosedAlerts = 0
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 1,
ClosedAlerts = 1
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 0,
ClosedAlerts = 1
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 1,
ClosedAlerts = 1
},
new AlertChartData
{
Date = DateTime.Now,
OpenAlerts = 0,
ClosedAlerts = 0
}
};

openAlertsDataset.Data = list.Select(n => (object)n.OpenAlerts).ToArray();
closedAlertsDataset.Data = list.Select(n => (object)n.ClosedAlerts).ToArray();
chartOverTime.Labels = list.Select(n => n.Date.ToString(“yyyy-MM-dd”)).ToArray();

}
}
}

0 votes

Checked 1.3, 1.4, 1.5 and 2.0 and don’t see an HeaderText property in the jQueryKnob extension. You need to attach some code please.

  • Luca answered Jul 6, 2019 - 5:56 pm
  • last active Jul 10, 2019 - 10:12 am
Showing 5721 - 5740 of 11k results