All Answers

0 votes

When I click on the link and look at your app, it shows an “Invalid Server License” error. It says “Status: WrongProductName Wisej Developer Professional License Expiration: 9/6/2025 Version: 3.5.11.5”

The WrongProductName error happens when you use a Developer License in the web.config instead of a Server License. Open your web.config file and add the server license key here:

<add key="Wisej.LicenseKey" value=""/>

If you don’t already have a Server License, you can get one here: https://wisej.com/server-licenses/

 

Hope this helps,

Julie

0 votes

Hi, Julie,

Attached is the actual code, trimmed down to fit the file upload size limit.

I have confirmed that it works in this reduced form.

If you resize a control on the right side of the form, the curves will track ‘live’ – vertical is best.

I need to have the same behaviour when a control on the left side of the form is moved (resize is not implemented on the left side controls).

Thanks,

Geoff

  • Geoff Sorensen answered Sep 6, 2024 - 12:21 am
  • last active Sep 6, 2024 - 12:22 am
0 votes

Hello,

Can you please provide a small runnable test case that shows what you have implemented so far, so that we can better assist you?

Thanks,

Julie

0 votes

Hello,

Can you please provide a test case that shows the solution you implemented with the dummy label?

Thanks,

Julie

0 votes

Thank you Frank, I was able to uninstall version 3.0.17, restart computer and then install Wisej.NET-3-VS2022.vsix (version 3.5.11). The project and Visual Studio 2022 are working fine. Even the renderer is working with Edge.

My only wonder regards the displayed 3.0.0.0 version on Toolbox. Does it has any meanings?

  • Adrian Zagar answered Sep 5, 2024 - 12:59 pm
  • last active Sep 5, 2024 - 1:01 pm
0 votes

Hi Adrian,

you should be able to deinstall 3.0.17 from your Control Center.
Please let us know if that does not work for you.

Best regards
Frank

0 votes

Also seems to work when clicked outside:

Me.Eval(”
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();
}
“)

0 votes

Thank you!

I could solve the issue with filename encoding by pre-encoding the content disposition filename myself.


string sFileName = "(Template_rev12) eFinance IFRS adjustments M01 2023_006_IFRS 24年7月存货调整修正(冲销6月上传7月).xlsx";

string f = Path.GetFileName(sFileName);
byte[] b = Encoding.GetEncoding(“utf-8”).GetBytes(f);
sFileName = “=?utf-8?B?” + Convert.ToBase64String(b) + “?=”;

string sTempFilePath = “temp.bin”;

FileInfo fi = new FileInfo(sTempFilePath);
using (FileStream fileStream = fi.OpenRead())
Application.Download(fileStream, sFileName);

0 votes

Hi Tiziano,

currently there are just 2 options for you. Either exclude the column from being shown in the Column Visibility Menu or set the column’s HeaderText property.

Best regards
Frank

  • Frank (ITG) answered Aug 27, 2024 - 3:40 pm
  • last active Aug 28, 2024 - 3:16 pm
1 vote

Hi Steve,

thanks for your kind words about Wisej.NET.
What you described is IMHO actually a shortcoming or flaw in Visual Studio where it sometimes does not properly indicate
if a window is designable or not. Sometimes it is enough to just change a single character in your code and change it back
and you will see the icon of your component change and the designer becoming available with right click and the context menu or just by double clicking on it.

Typically this happens when you start working on a newly opened project and will get much better when you keep working on it.

I’m glad you figured out another way to get around it and wish you much fun on your Wisej.NET from here.

Best regards
Frank

0 votes

Hi Sergio,

You can create a new Appearance Key and let it inherit from menubar.
Then change whatever you want for it and assign the Appearance Key to your MenuBar either through the property window
in Visual Studio or by code.

Best regards
Frank

 

0 votes

I am trying to apply search function to data bound (with binding source defined) SearchComboBox.

In the code I can see that it is fetching data items:

protected override ObjectCollection CreateItemCollection()

{

    return this.InnerComboBox.Items;

}

but when combo is opened I can only see Sytem.Data.DataRowView items in the list.

When clicking on the item it is correctly assigned to combo box when it is closed.

I tried defining DisplayMember and ValueMember when combo is created but no luck:

var innerComboBox = new ComboBox

{

    Name = “list”,

    Height = 300,

    DropDownStyle = ComboBoxStyle.Simple,

    AutoCompleteMode = AutoCompleteMode.Filter,

    DisplayMember = this.DisplayMember,

    ValueMember = this.ValueMember

};

 

 

0 votes

Hi Frank,

Thanks to your suggestion, I was able to implement my custom headers by using a super control that contains a label and the image I need. Everything works as I want. There’s just one issue left: the menu that allows you to Show/Hide the columns only shows the checkboxes but not the column names. Is there a way to display it? I tried exposing the “HeaderText” property from the UserControl, but it doesn’t work.

Best regards

Tiziano

0 votes

Actually, autosize became correct when scrolling was enabled and took place.

  • mgmst answered Aug 23, 2024 - 5:18 am
0 votes

You might find the TreeView documentation to be helpful: https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview

Also the documentation for TreeNode: https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.treenode

To show the toolTip, make sure to set ShowNodeToolTips = true on the treeView. You can do this in the designer.

You can set the ToolTipText for each node in the designer (click on the TreeView -> edit nodes -> select a node -> type a value for ToolTipText)

You will also want to set Scrollable = false, so the long node text doesn’t result in a scroll bar.

You can get the width of the TreeView using treeView1.Width, but unfortunately there is no property for the width of the node.

You can, however, get the length of the text of the Node. (Node.Text.Length). So if the length of the text is over a certain amount, you can set/display the ToolTip based on that.

See attached sample.

0 votes

Hi Alaa, sorry for the late answer, the days around 15Aug are a truly dead period in our part of the globe…

It works correctly now, thanks for the updated sample.

Alex

0 votes
  1. The reference to the main page is fine. no need to use session variables.
  2. Wisej uses the normal object reference functionality of .NET. You say that you dispose of the User Control, but keep in mind that disposing and garbage collection are different things. The only way a reference to an object is kept in memory in .NET is through a “root” (see MSDN docs). The memory tool in VS shows the path to a root which shows where in the application a reference is being held. Usually is a static somewhere in the app.

If you want to purchase consulting hours, you can contact sales (sales AT wisej.com) or use https://wisej.com/professional-services-request/

Hope this helps!

-Julie

0 votes

Can you please attach a reproducible test case, following the guidelines from https://wisej.com/support/question/forum-guidelines under “Before Posting an Issue”? Then we can try to reproduce.

Thanks!

-Julie

0 votes

Here is some sample code that will set the text color to red:

Me.DxDataGrid1.Eval($"
var el = this.widget.getRowElement({e.Data("rowIndex")});
el.css('color', 'red');
")

See this example from the DevExpress documentation:
https://supportcenter.devexpress.com/ticket/details/t984736/datagrid-how-to-change-the-cell-s-background-color

0 votes

Hi Huynh,

this issues is fixed in Wisej.NET 3.5.11 that has just been deployed.

Best regards
Frank

Showing 381 - 400 of 11k results