All Answers

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

0 votes

Hi,

thanks for reporting this. I´ve logged issue #3161 for it and a fix will be included in our Wisej.NET 3.2 release.

Best regards
Frank

0 votes

Hi David,

We do have the DesignMode property to achieve what you want.

You can use it to determine whether your UC is in design mode or not!

Best,
Alaa

0 votes
In reply to: Grid Filter Row when?

The column filter is 1 button just like excel. The filter panels can be created however you like.

If you have found a potential issue with something else, create a new entry with a reproducible sample and a clear explanation of the error you have encountered please.

 

  • Luca answered Apr 20, 2023 - 10:31 am
0 votes
In reply to: Grid Filter Row when?

Column filter extension is to complicated for the customers to use, and the second kind of it generates an error message, I will send you picture of the message some later.

  • mgmst answered Apr 20, 2023 - 4:03 am
0 votes
In reply to: Grid Filter Row when?

We are not. You can add a control in the column header. Our use a frozen top row when the grid is not data bound or use the column filter extension.

  • Luca answered Apr 19, 2023 - 8:17 pm
0 votes

Hi Alaa !

Thanks for the quick fix,  it’s working fine now.

Have a nice day.

Showing 1321 - 1340 of 11k results