All Answers

0 votes
In reply to: Canvas save to bmp

Hi Julie, unfortunately I need the package Html2Canvas for Framework 4.6.2

 

0 votes
In reply to: Canvas save to bmp

Install the Html2Canvas Wisej extension in your Wisej project: (Right-click on the project under Solution Explorer, choose Manage Nuget Packages, Browse, search for “wisej html2canvas”, select it and install it)
https://docs.wisej.com/extensions/extensions/html2canvas

You can then use the Html2Canvas extension to save a screenshot of the contents of the canvas control:

private void button1_Click(object sender, EventArgs e)
{
AlertBox.Show("Saved canvasimage.bmp to the current directory");
// Use Html2Canvas to save a screenshot of the canvas contents
Html2Canvas.Screenshot(this.canvas1, (image) => { image.Save(@".\canvasimage.bmp"); });
}

More documentation on HTML2Canvas: https://docs.wisej.com/extensions/extensions/html2canvas/api/wisej.web.ext.html2canvas.html2canvas

  • Julie(ITG) answered Apr 26, 2023 - 4:22 pm
  • last active Apr 26, 2023 - 4:26 pm
0 votes
In reply to: Canvas save to bmp

Here is a sample:

1 vote
In reply to: Button Hover Effect.

Hi Ruben,

Attached is a mixin file that enables the hovering effect you need.

A theme mixin is applicable to all themes, meaning it overrides whatever default value on any theme you want.

With the Wisej.NET theming system, you can use CSS to customize your themes to include virtually anything you want!

I would suggest that you take a look at our Theme Builder documentation for more info!

All you have to do now, is to download the mixin file from here, and then copy/paste it into your application’s Themes folder and you’re all good to go!

HTH,
Alaa

0 votes

We were able to reproduce the issue and are investigating it further.
-Julie

0 votes

Gracias, ?

0 votes

In general the CellFormatting event should not be used to update the values or the styles stored with the grid. It’s a formatting event that fires for all cells in all rows for the page (about 100 rows at a time) that is requested by the browser. It allows your code to render a cell value however you want without altering the data. For example a cell that contains “Name” can be rendered as “<b>N</b>name”. Same for colors, images etc.

In the code you pasted executed for all cells in all rows in all columns but it affects only “colDoc” and “colEntrylinkeddoc” and it affects them permanently (potentially updating the data sorce if bound) by setting the value in the cell so there is no need to do that  on every formatting (hit refresh and you will see the new values rendered correctly). You can acheive the same result in a better way using e.Value and e.CellStyle and check the e.RowIndex and e.ColumnIndex values.

In any case, this potential regression will be addressed in 3.2.

 

 

  • Luca answered Apr 25, 2023 - 4:11 pm
  • last active Apr 25, 2023 - 4:11 pm
0 votes
In reply to: 3d modeller

just found https://demo.wisej.com/3dviewer/ – is this the best starting point?

0 votes

Hi Wim,

The Locations property is an array of Point (see TouchEventArgs on our API Documentation website), the difference between MouseMove and TouchMove is that the MouseMove event is fired whenever you move your mouse pointer on the browser, wheras the TouchMove would only move if you press and hold the right click of your mouse or physically touch the browser area with a touchscreen.

You can loop through the Locations array and draw your Canvas from the exposed X and Y properties as you would normally on the MouseMove event.

Something along the lines of the following code:

For i As Integer = 0 To e.Locations.Length - 1
CanvasDraw(e.Locations(i).X, e.Locations(i).Y)
Next

HTH,
Alaa

0 votes

There is an alternative (and easier approach):

keyup
Alternatively you can remove the handler on CellEndEdit using this.dataGridView1.EditingControl

Please find a small sample attached.

Best regards
Frank

  • Frank (ITG) answered Apr 23, 2023 - 7:45 pm
  • last active Apr 23, 2023 - 7:47 pm
0 votes

I really intend to validate and save on any keystroke.

Can you please suggest some example for custom cell editor.

Thank you!

  • mgmst answered Apr 23, 2023 - 4:24 pm
0 votes

Hi,

I would recommend handling the CellValidated/CellValidating events and do the validation and saving there.
Or handle the CellBeginEdit/CellEndEdit events.
If you really intend to save on any keystroke, you might want to look into using a Custom Cell Editor.

Best regards
Frank

0 votes

Hi Vincent,

changing the assembly name does not affect the license.
Please contact us on salesATwisej.com for your other license related questions.

Best regards
Frank

0 votes

Hi,

 

I was able to resolve this issue, however, how can I fire up validation Rules say on a Save button instead of when I leave a textbox? Because when I focus on a textbox with a validation rule, i can leave the textbox until i enter a value on it. I want to validate when I click on a button(Save button)

0 votes

I test with 3.1.10 in a localizable window, set the Column1 header text to “Column 1” in “en-US” then tp “Colonna Uno” in “it-IT”, set the initial Width to 50. Switched the culture in Default.json and it seems to work well using AutoSizeColumnsMode = AllCells and ColumnHeader. I also tried changing the header text after creation (automatic localization can only be set when a control is created) and it still works.

If you can attach a small test case we can try to reproduce.

 

  • Luca answered Apr 22, 2023 - 5:34 pm
0 votes

If this is for 3.2 beta it’s a known issue already fixed in our build, not updated yet on nuget beta.

If it’s for 3.1.10 I cannot reproduce, a small test case may help us see the issue.

  • Luca answered Apr 22, 2023 - 5:30 pm
0 votes
In reply to: Wisej Designer

We don’t supporting zooming. The designer is already pixel-perfect. Zooming leads to decimal rounding. We may add a version of zooming in a future release.

  • Luca answered Apr 22, 2023 - 5:20 pm
0 votes

Thank you!

I now work with the latest version but the problem still exist, as I describe in my edited post above:

I have a DataGridView with columns with set to autosize according to each column caption text length. Please see the image attached.

I need after language change all columns to resize according to new language captions length.

If I do manually resize one column, all columns autoresize according to their new caption texts lengths. But I can not do it programmatically after each language change procedure.

  • mgmst answered Apr 22, 2023 - 4:25 pm
0 votes

Hi Vincent,

this issue is fixed in Wisej.NET 3.1.10.

Best regards
Frank

0 votes

Hi Sascha,

this is fixed in Wisej.NET release 3.1.10

Best regards
Frank

Showing 1401 - 1420 of 11k results