Hi Frank, Luca,
Fixed in 1.2.85.
Thanks.
Hi Frank, Luca,
You nailed it using 1.2.85.
I believe so. The Starbucks analogy is the key and now, I only need one trip to grab that two items.
Nice weekend to both of you.
Thanks.
It seems to be working now with the new version 🙂
About mid December is when I am think about starting the work to port our product cloud management suite over to wisej. FYI It is a massive project that has been using VisualWebGUI for 5+ years.
Hi Cris,
new build (1.2.85) is available now.
Best regards
Frank
Hi Cris,
nice story about Starbucks, seems you have convinced Luca with that 🙂
The new build (1.2.85) includes the additions/refinements that Luca listed in his previous post.
Can you please retest ?
Thanks
Frank
A new build (1.2.85) has just been uploaded.
It fixes the problems with ListView in design mode and the Month/Year selector in DateTimePicker has been improved.
Hi Luca,
I understand your point and agree with you.
Honestly, the way it works now is already acceptable except for one thing. If SuggestAppend, the second character entered in the edit control is appended to the suggested string as shown on Excel table I sent you (in cell C21 and C22). Pressing tab or clicking the highlighted item in the dropdown list doesn’t change the value in the edit control. Have you considered this behaviour?
Thanks.
Hi Cris,
We can’t replicate the filtering that you see in winforms. It’s not the dropdown portion. If you try in winform with the dropdown open you’ll see that it shows a second popup overlapping the drop down a bit with the suggested entries. The suggestion panel in winforms is the same used for the textbox and it’s a windows feature overlapping the drop down.
We were trying to match Suggest, Append and SuggestAppend in a logical way to behavior. This is what we were aiming for:
Best,
Luca
🙂
Frank said the same a couple of days ago – except the Starbucks part. I told him to wait for the first issue and now we have it.
The issue was whether to add two buttons: ok, cancel. Which would have required localization and still a second or third click to close.
This is how it is now (in the next update):
Best,
Luca
Hi Cris,
Thanks, it’s all fixed and will be in the update today. We were focusing on unit and ui tests – we are using the mono winforms tests and did’t pay enough attention to the designer.
However, the items added at design time cannot be shows in the designer at the moment. The listview (like the grid) use an http callback to query for “pages” of data and at design time we have to instead “feed” the data to the renderer. We have the code for it but it’s not fully functional at the moment – so it’s better to leave it blank.
Bestt,
Luca
Hi Frank,
Design Time:
While adding Columns, they are visible right away in the ListView now when property View=Details. Deleting the ListView itself, still doesn’t clean up the designer.cs file.
No code is generated in designer.cs file when adding SubItems. That’s why I don’t see anything on the screen at design-time and at runtime.
Using the designer, in ListView Tasks, clicked “Edit Items”. In ListViewItem Collection Editor, clicked Add and in Text Property, enter “Product 1” It created an object of type ListViewItem in designer.cs as listViewItem1. In the Property Grid, clicked SubItems (Collection) to open the ListViewSubItem Collection Editor. The ListViewItem (Product 1) I added is already there and becomes a ListViewSubItem. In Winform, it would not appear there as a SubItem. Clicked “Add” twice, and entered something in Text property. Clicked OK->OK.
Looked at the designer.cs file and no code was generated for the SubItems I added. Re-opened the ListViewSubItem Collection Editor and SubItems are still there. Closed the form, re-opened it and SubItems were gone.
Runtime:
Adding Items at runtime seems to work properly.
My story looks messy but that’s how I did it using Build 1.2.84. If you still need a sample, just give a shout.
Thanks.
Hi Frank,
Please see attached file. It is based on the WinForm project included in ComboBoxTest solution I sent you. Please note of how the dropdown list is filtered everytime a user types a character in the edit control.
Append mode is working as expected like before.
Thanks.
Hi
Noticed you have added a popup control. Can this be used as a custom drop down or has this yet to be implemented?
How do you use the Alignment property?
Thanks for your help
Ewan
Hi Luca,
Yehey!!! It’s now fixed using 1.2.84.
Thanks.
Hi Frank,
Confirmed fixed using 1.2.84 and it looks better now as month and year are highlighted. Almost perfect! Why did I say that?
I have master and he wants Ancho Chipotle Chicken and Chile Mocha Frappuccino from Starbucks. How would I do that?
Option 1:
Option 2:
If I go for Option 1, my master will be mad at me so, I would definitely go for Option 2 and wouldn’t it be nice if the MonthCalendar works like that?. If a user wants to change the month and year, he/she should be able to do it in one go. Currently, when a user clicks a month, the month/year selector closes and needs to be reopened to change the year. Not so user-friendly. Just my 2 cents.
Thanks.
Works like a charm! Thanks Luca!
I was using the form designer “edit items…” nothing special.
I added the items in the Windows_load function and they appear fine.
Also adding a column click event handler throws an error.
Use this class instead of HtmlPanel. It removes “top:0px” and adds “bottom:0px” to the inner html widget. It can be in many ways, this one doesn’t require a javascript extended class.
public class HtmlPanelEx : HtmlPanel
{
public HtmlPanelEx()
{
// make sure the control is created, otherwise
// Update may re-enter when calling Eval() on a control that is not
// created yet (this "problem" may probably be changed).
CreateControl();
}
public override void Update()
{
// if the control is created and it's a new rendering, dock the
// inner html widget to the bttom.
if (this.Created && ((IWisejControl)this).IsNew)
{
DockHtmlWidgetToBottom();
}
base.Update();
}
private void DockHtmlWidgetToBottom()
{
// remove the top style and add the bottom style
// when the widget is rendered into the dom.
this.Eval(@"
this.addListenerOnce('appear', function() {
var el = this.getChildControl('html').getContentElement();
el.setStyle('top', null);
el.setStyle('bottom', '0px');
});
");
}
}
Cris,
WJ-7737 is fixed in the latest build (1.2.83).
Best regards
Frank
Hi Cris,
can you please retest Suggest and SuggestAppend in the latest build (1.2.83) ?
WJ-7736 has been implemented.
Thanks
Frank
