All Answers

0 votes

Luca,

The issue still exists in v2.2.39. Please fix asap

 

private void CbValue_DropDown(object sender, EventArgs e) // or any event basically
{

var a = Task.Run(async () =>
{
await Application.StartTask(() =>
{
var x = “Working in 2.2.29 but not in higher versions, including 2.2.39”; // !!
}).ConfigureAwait(false);
}).ConfigureAwait(false);
a.GetAwaiter().GetResult();

}

0 votes

Hi Cristian,

We just added the new config option, DisplayFormats, which will be available in the next build and in the Wisej-Extensions Github repository (https://github.com/iceteagroup/wisej-extensions)

You can use it like this:

Time = new ScaleTime {
  DisplayFormats = new {
    day = "MMM DD YYYY"
  }
},

Let me know if you have any questions or issues with it!

Best,

Levie

0 votes

may be Time.Unit override Parser?

0 votes

Hi Levie,

thank you! I have download the extension, now I have the property Parser, but the result don’t change. Please can you check it?

best

0 votes

Hi Cristian,

We can add the Parser configuration option to the ChartJS extension. I’ll log it as an enhancement and update the GitHub repository wisej-extensions (https://github.com/iceteagroup/wisej-extensions/tree/2.2/Wisej.Web.Ext.ChartJs).

Please let me know if you need anything else!

Best,

Levie

0 votes
In reply to: BarChart

Hi Stefano,

You can find the updated extension here: https://github.com/iceteagroup/wisej-extensions/tree/2.2/Wisej.Web.Ext.ChartJs

It will also be included in the next build.

Please let me know if you have any questions about it!

Best,

Levie

  • Levie (ITG) answered Feb 23, 2021 - 6:28 pm
  • last active Feb 23, 2021 - 6:28 pm
0 votes
In reply to: BarChart

Hi Stefano,

We can add the Category and Bar Percentages to the X / Y axis configurations: https://www.chartjs.org/docs/latest/charts/bar.html#dataset-configuration.

I’ll log the enhancement and update the GitHub wisej-extensions repository when it’s complete!

This should give you the behavior you’re looking for.

Best,

Levie

0 votes

Hi Luca

Thanks. I handle DateTime.MinValue by passing a text value as its not a valid SQL date, however there seems to be an inconsistency as some of the time the MinValue is passed and at other times null is passed. (I am capturing the parameter values passed to the SP that updates the SQL table for debugging purposes)

Thanks for your help

0 votes

Hi Ewan, the “detaching” drop down is fixed. Thanks. It was caused by code for mobile kicking in by mistake. About the DBNull issue, DBNull is not converted to DateTime.MinValue, it stays DBNull. The issue could be that when you edit with the DateTimePicker and make it black it stores DateTime.MinValue and should be converted back to DBNull?

  • Luca answered Feb 23, 2021 - 2:28 pm
0 votes

To create a javascript function in the context of the widget use:

this.functionName = function() {}

If you just declare the function or assign it to non-scoped variable it’s all global (scoped to window) in Javascript.

See attached modified sample. You can also use VS file nesting extension (https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileNesting) to create really cool self contained control/widgets. Also in the modified sample. It’s not necessary, but it’s useful.

To load jquery simply add it to Default.html.

 

  • Luca answered Feb 22, 2021 - 2:34 pm
0 votes

Ciao Simone, in virtual mode the grid cannot move the rows since they don’t exist. You should set the Column.SortMode to Programmatic and in ColumnHeaderMouseClick sort your data source, being virtual could be anything. You can change the sort glyph isetting Column.HeaderCell.SortGlyphDirection.

However, I see a shortcoming in the implementation that we can make better. When in virtual and SortMode is Automatic, the datagrid still sets the glyphs mode but doesn’t update the SortedColumn or SortDirection properties since they are used only when it can sort the data source itself. So you’d have to keep track of the sort order and sort column.

You may also override this:

 protected virtual object OnWebDataRead(int firstIndex, int lastIndex, ListSortDirection sortDirection, int sortIndex)

 

That works if you keep SortMode to Automatic. You will get this call with the updated SortDirection and the index of the column to sort. This lets you change the order of your data.

HTH

 

  • Luca answered Feb 22, 2021 - 2:11 pm
0 votes

Hi Luca

I am now using Version 2.2.39

With this version you cannot pick the date because the drop down becomes detached from the grid.

See attached image.

NB you can type the date in ok

I have also noticed that with a bound DGV, if the data source contains DBNull for the date the Date Picker control within the column does not always get set to datetime.MinValue by default

Thanks for your help

  • Ewan Walker answered Feb 22, 2021 - 10:16 am
  • last active Feb 22, 2021 - 10:17 am
0 votes

Hi Frank,

 

Turn of AutoGenerateColumns does the trick 🙂 !

Thanks,

Regards,

Wim

0 votes
In reply to: UserPopup Animation

Angelo,

issue #2574 is fixed in Wisej release 2.2.39

Best regards
Frank

0 votes

Forgot to add that you also need a .json configuration with the same name as the startup page. Default.json, SSO.json, etc. Usually for SAML signing I have seen customers using Default.aspx.

  1. Basically the html, php, aspx page is loaded by the browser, it downloads wisej.wx javascript, which starts wisej on the server which uses the Default.json to find the assembly and main method (main window to load).

2. The json can also refer back to the page because it’s used by the wisej module for “pretty urls”. If you don’t specify the extension (i.e. /SSO or /”) Wisej module looks up a json with the same name, then redirects the browser to the page specified in the json and back to 1.

  • Luca answered Feb 19, 2021 - 9:14 pm
  • last active Feb 19, 2021 - 9:17 pm
0 votes

Sorry we missed the additional comment. For the user data:

Application.Browser.UserData. It’s a dynamic object.  Wisej.userData = {name:'<%=SAML[“Name”]%>’} Will be on server Application.Browser.UserData.name.

All you need to start up the wisej app is

<script src=”wisej.wx”></script>

And of course the handler in web.config.

 

  • Luca answered Feb 19, 2021 - 9:13 pm
0 votes

Hi Wim,

I have tried this in a small sample but could not reproduce.

You can try

  • To Turn off AutoGenerateColumns of the DataGridView right before removing the Column
  • To hide the Column instead of removing it (set visible = false).

If both approaches won´t work for you please send us a small test case and we´ll check on our end.

Best regards
Frank

0 votes

So, i just found the solution. I will post it here for those who wants to retrieve an image from the database. Also thanks for the Staff that helped me with some code!

 

Dim imagem As Byte()
Sql = “SELECT image FROM imagens WHERE user='” & LkID & “‘”
dt = SqlDataTable(Sql, LerMy)
Dim imageListEntries As ImageListEntry() = New ImageListEntry(dt.Rows.Count – 1) {}
Dim count = 0
For Each imagens In dt.Rows
imagem = dt.Rows(count)(0)
Dim ms As MemoryStream = New MemoryStream(imagem)
imageListEntries(count) = New ImageListEntry(Image.FromStream(ms))
count = count + 1
Next
Me.CustomWallpaper1.Images = imageListEntries

  • Guest answered Feb 19, 2021 - 10:27 am
0 votes

Here is the result of the attached sample with a bitmap changed to use new Bitmap(Image.FromStream()). This is a common .NET drawing issue, not a Wisej issue.

  • Luca answered Feb 18, 2021 - 5:33 pm
0 votes

Use New Bitmap(Image.FromStream(stream)) or don’t use the same stream twice.

  • Luca answered Feb 18, 2021 - 5:22 pm
Showing 4021 - 4040 of 11k results