iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Daniele,
If I am not mistaken, highlight is only for selected items.
But for your scenario, If the edit item is not available, it will be inserted. If you open the dropdown, it would be automatically selected and highlighted because you have not edit or change your selection. WebCombo will still recognize it as current selection.So, I think it is no problem with that. As you described, it seems you only want to show one selection and it seems case sencitive.Unless you don't set 'AlwaysShowAllDropDowns' yes, the dropdown should show only one selection.
Except, if you have 1 or more items that have same text. You could not expect for only one result because WebCombo would automatically filter.
Please let me know if I am mistaken in understanding your requirement.
Regards,Handy
Hello Handy Surya,
I known if I put in the edit combo a product number for exmaple '0080 010' ,and the combo has
the property EntryMode on InstantLookup mode, if I click on the bootm arrow with the mouse
the drop down box is opened and the product highlight is properly '0080 010' and I see all products.
But if I simulate this behavior by code, for example after that I inserted the first product, in the client event
OnAfterAdd of the WebGrid calling the following methods of the combo:
combo.SetText(lastProductInserted) in this case last product inserted is the product below (0080 010)
combo.LoadValue()
I can see in the edit of the combo the last product inserted (0080 010)
but the dropdown list is not opened also if I use in the code the function ShowDropdown and if I set
the property ForcedDropDown to true.
So the first question Why the combo not open the DropDown list?
In addition if open the droodown list cliccking by the mouse on the bottom arrown of the combo,
the dropdown list is opend but I see only the product number '0080 010' instead of all.
I aspect this because the property AlwaysShowAllRownOnDropDown set to true.
The second question is:
Because I not see all products but only one?
Thanks again.
Daniele Barbini.
Of course it will not open the dropdown. You called it OnAfterAdd client side event. It will not work because it already exit edit mode in WebGrid.
Also, if you click on dropdown arrow, the records should listed all instead of only one if you use AlwaysShowAllRowsOnDropDown properties true.
but I don't understan this:
If I try to open manually by code the WebCombo,for example after I inserted a row in the event OnAfterAdd,using this code
var combo = ISGetObject("WebComboProd"); combo.SetText(lastProductInserted); combo.LoadValue(); combo.SetFocus(); combo.ShowDropDown();
the combo does not show the list box!
This because (I think) using the method SetText with the last product number inserted
(a whole product number) the combo box returns only one row.
But why,If I'm using the property AlwaysShowAllRownOnDropDown set to true?
I expect all products even if I put in the setText method the last product inserted.
I should use another method instead of setText to initialize the search of the combo?
Because my target is to see all products
in the list box but highlight the product used in the setText method!!!!
Thanks in advanced,
Daniele Barbini
I think you missunderstood the part I explained.Your code would not be called.It is because you integrate WebCombo into WebGrid and called those codes OnAfterAdd.As I said before, you could not do this because you are no longer in EditMode of WebGrid.
In this case, WebCombo is only edit mode of WebGrid.You have to in edit mode in a cell which used WebCombo. With this way, you can use your code.If you are not in edit mode, you only can use SetText for WebGrid cell object, not in WebCombo.
e.g Try to call those code with a button click.But you will need to select a row and use code to active edit mode of the selected row.Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname