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?
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
Also seems to work when clicked outside:
Me.Eval(”
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();
}
“)
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);
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
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
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
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
};
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
Actually, autosize became correct when scrolling was enabled and took place.
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.
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
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
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
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
Hi Huynh,
this issues is fixed in Wisej.NET 3.5.11 that has just been deployed.
Best regards
Frank
I’m working on trying to make a repro for this issue – and wow does it ever repro. In fact, it repros so much that I can’t even get to the point where the full app has problems.
I have a feeling that this is an automatic layout issue. The page I’m testing has 7 DGVs and a number of FlexLayoutPanels, with nearly everything set to autosize and/or dock.Fill. In my sample app, I can’t even insert a single row of data into the DGVs without the page locking up.
In this “locked up” state, the browser is using a small but consistent amount of CPU (about 1%); iisexpress is not using and CPU, nor is devenv.exe, so it looks like it’s the browser itself – presumably the JavaScript engine – which is getting stuck.
Where can I send my repro application? It’s a very stripped down version of the real application that I’m working on, so I do not want to post it publicly.
Thank you I appreciate this, but my themes folder only has my custom theme in it and some odd mixin .
It does not represent the content of this list that I see in the designers of the controls as shown in the previous image attachment,
that I am attempting to access and provide to user for dynamic selection
There isn’t a built-in method for Wisej for getting the themes from the themes folder specifically.
However, you can just check the Themes folder and get a list of the files in it.
Just use DIrectory.GetFiles()
https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles?view=net-8.0
https://stackoverflow.com/questions/12524398/directory-getfiles-how-to-get-only-filename-not-full-path
Thank you.
Is it possible to create properly autosize when HTML allowed is true PANEL. If yes, please for small solution sample.
Kind regards