Hi,
i have a lot of tiles in my ultratilepanel, and use an ultracombobox to found the tile. The ultracombobox use the appendmode.
I want that everytime the combovalue change the ultratilepanel show the correct tile scrolling automatically at the tile position.
example: some countries in the world from A to Z, and my ultratilepanel show 4 tiles at time
start position:
albania
andorra
australia
austriawhen i press I on my ultracombo, i must show in my ultratilepanel(for ex):india
indonesia
irlanda
islanda
when i press T (after I) , i must show Italia etc
I dont understand how can set the scroll position for see the correct tiles after key press in the ultracombobox.
tks for help.
Hello Luca,
I have been investigating into your requirement in this case, and I believe I have come up with a solution for it.
In order to do this, the first thing I would recommend doing is to handle the UltraCombo’s TextChanged event. In this event, you can check the Text property of that control and get the first UltraTile from the UltraTilePanel’s Tiles collection that matches the text of the UltraCombo. In the case of the sample project I am attaching, the Caption of the UltraTile and the entries of the UltraCombo are the same.
From here, I would recommend getting the wrapped TileContainerPanel that the UltraTilePanel has in its Controls collection at index 0 (assuming you haven’t added any new controls to this). This TileContainerPanel has a ScrollControlIntoView method that you can pass the UltraTile to in order to scroll it into view.
The issue with this is that if the ScrollControlIntoView method is scrolling a tile that is “scrolled down”, it will put it on the bottom of the UltraTilePanel. As such, in the sample project I am attaching, I called a SuspendLayout() on the TileContainerPanel, followed by two ScrollControlIntoView calls. The first scrolls the last tile into view and the second scrolls the desired one. This ensures that you will be scrolling up as long as the desired tile is not at the bottom of the control, and it will bring the tile to the top row.
I am attaching the sample I created to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.
TilePanelComboScroll.zip
Hi, tks for reply. im so sorry for this, but can u use infragistics 17.2? i dont pur this info in my topic sorry.
I am attaching the same sample project using version 2017.2 instead of version 2019.2.
3681.TilePanelComboScroll.zip
wow, perfect!!! i must manage the itemnotinlist and its perfect.
tks a lot