All Answers

0 votes

Hi Arturo,

fix is included in Wisej development build 2.2.54

Best regards
Frank

0 votes

Hi Ivan,

the fix is now included in our latest development build (2.2.54).

Best regards
Frank

0 votes

Hi Praveena,

issue #2685 is fixed in our latest Wisej development build (2.2.54).

Best regards
Frank

0 votes

Hi Laurent

Thank for write us

What version of Wisej are you working?

Regards

  • Paul answered Jul 2, 2021 - 5:32 pm
0 votes

RowLeave fires after RowValidating and RowValidated. Once validate it’s not dirty anymore.

  • Luca answered Jul 2, 2021 - 3:56 pm
0 votes

Hi Andi,

actually it´s not a bug but expected behavior:

The call dataGridView1.AutoResizeRow(rowid); inside your loop does not have any effect as the rows are not on the client yet.

In order to make your sample work you can either set the AutoSizeRowsMode

this.dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;

Here now further Resize call is needed.

Or you can set the BlockSize of the DataGridView higher because the resizing otherwise only applies to the client cache.

Best regards
Frank

0 votes

Hi Ewan,

Just set the SYSTEM permissions to Full Control.
Alternatively, if you have a user assigned to the AppPool, that user should have the Full Control permission to the C:\Windows\TEMP folder.

HTH,
Alaa

0 votes

The performance hit should be negligible. Wisej keeps a list of “dirty” components (a component is marked dirty by calling the Update  method of the component). At the end of the normal request from the browser Wisej goes through the dirty components only and builds the response json containing only the differences.

When you use Application.Update() it does the same but it does it immediately and pushes the changes to the browser through the websocket connection. So if you call Application.Update() and nothing changed since the previous update the dirty list is empty and nothing happens.

  • Luca answered Jul 1, 2021 - 1:06 pm
0 votes

Hi Brayden,

Attached is a sample that might suite your needs.

You can use the Formatted property of the DataSet that let’s you display your own custom formatted labels. Please make sure that you have DataLabel Display option set to True.

HTH,
Alaa

0 votes

I didn’t get it to work. I use a Custom Control inside a panel where a header (CustomControl) is added and a new label with (long) text.

The purpose of this usercontrol (just a panel which will contain a bunch of controls loaded/created at runtime) is to show messages/notifications to the user with a custom header/title.

Data is fetched from a database.

Public sub Boot

Using Connection As OdbcConnection = New OdbcConnection(DSN)
Dim odbcCommand As OdbcCommand = New OdbcCommand(“SELECT TOP 10 P_ID FROM dbo.NOTIFICATIONS WHERE IsActive = ? ORDER BY P_ID DESC”, Connection) With {.CommandType = CommandType.Text}

With odbcCommand
.Parameters.AddWithValue(“@IsActive”, True)
End With

Using TekstveldAdapter As OdbcDataAdapter = New OdbcDataAdapter()
TekstveldAdapter.TableMappings.Add(“Table”, “NotificationData”)
TekstveldAdapter.SelectCommand = odbcCommand
Connection.Open()

Using dataSet As DataSet = New DataSet(“NotificationData”)
TekstveldAdapter.Fill(dataSet)

For a As Integer = 0 To dataSet.Tables(0).Rows.Count – 1

If Not DBNull.Value.Equals(dataSet.Tables(0).Rows(a).Item(“P_ID”)) Then

Dim TempItem As New Notification With {.ID = dataSet.Tables(0).Rows(a).Item(“P_ID”)}
TempItem.LoadData()

Dim NewControl As New NotificationItem With {.ExistingItem = TempItem, .Dock = DockStyle.Top}

NewControl.Boot()
Panel2.Controls.Add(NewControl)
NewControl.BringToFront()

Dim TempLabel As New Label With {.AutoSize = True, .Dock = DockStyle.Top, .Text = TempItem.Message}
TempLabel.Text = TempItem.Message
Panel2.Controls.Add(TempLabel)
TempLabel.BringToFront()

End If

Next a

End Using

End Using

End Using

End Sub

In this code :

“Notification” is just a class with a few properties (ID, Subject & Message).
“NotificationItem” is a custom control which serves as the message header
“TempLabel” is the label that’s being difficult.

Can you show me how to fix this code with your suggested workarrounds?

Thanks a lot!

  • Vincent answered Jun 29, 2021 - 7:05 pm
  • last active Jun 29, 2021 - 7:07 pm
0 votes

This is an ongoing issue with have with different browsers and different font measuring when the text wraps. What you see in the designer is the way IE wraps the text. Depending on the font and the unit and the size it may differ from chrome which may different from firefox. You may find some blogs that recommend using line-height: 1.2em to normalize the browsers, but that also doesn’t work when the font is bigger and may cause lines to overlap.

In this case you can simply set the CssStyle property of the label to “1.18em” to make all browsers render the line gap in the same way.

In alternative you can have the browser measure it on the client using something like this:

Private Async Sub Page1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
   Me.Label2.AutoSize = False
   Dim text = Me.Label2.Text.Replace(vbCrLf, "<br/>")
   Me.Label2.Height = (Await Wisej.Base.TextUtils.MeasureTextAsync(text, True, Me.Label2.Font, Me.Label2.Width)).Height
 End Sub

 

The replacement to “<br/>” is necessary because there is a bug in TextUtils.MeasureTextAsync when the text includes hard coded newlines, which is fixed internally.

 

 

  • Luca answered Jun 29, 2021 - 3:33 pm
0 votes

Hi Vincent,

Thank you for reporting this issue.
We’re in the process of investigating it and I will let you know of any updates.

Thank you,
Alaa

0 votes

Hi Praveena,

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

Regards,

Levie

0 votes

I think the issue is different. If you enable AcceptsReturn it should work fine. But it looks like if you have it disabled and then have shift enabled press return right away it can get ignored.

  • Levie (ITG) answered Jun 28, 2021 - 8:56 pm
  • last active Jun 28, 2021 - 9:02 pm
0 votes

Do you have the AcceptsReturn property on?

0 votes

Hi Praveena,

Thanks for reporting the issue with the root. It’s logged as #2685. As a workaround, you should be able to add a root without the “:” at the end of it (i.e. “C” instead of “C:”).

In regards to restoring the working directory, we don’t have that feature yet, but I can log it as an enhancement.

If you need this feature, you have the option to build a custom FileDialogUI that will let you control all aspects of the picker (see DialogTemplate).

 

Let me know if you have any other questions!

Regards,

Levie

0 votes

Thanks for reporting the issue, Vincent!

I can reproduce on Android, iOS, and desktop.

We’ll have a fix available for the next build.

Logged as #2684.

 

Regards,

Levie

  • Levie (ITG) answered Jun 28, 2021 - 7:56 pm
  • last active Jun 28, 2021 - 7:57 pm
0 votes

Hi Arturo,

It will be updated for the next build :-).

Regards,

Levie

0 votes

Hi Levie,

thanks for the code, it works very well. Firing the event often doesn’t matter in this case, I need only a very small if-statement there.

I integrated Mobile integration package, but until now there is only one textbox that uses the soft keyboard without any button and I added the event handler like you described already.

 

Best regards

 

Ottilie

0 votes

Thanks for the answer Levie, RichTextEditor does not accept character white space.

Either Devextreme dxHtmlEditor: http://demo.wisej.com/devextreme/#dxHtmlEditor

 

 

  • Paul Samaniego answered Jun 27, 2021 - 5:08 am
  • last active Jun 27, 2021 - 6:39 am
Showing 3521 - 3540 of 11k results