Hi,
I have a question with scrolling to location within a list.
How do I scroll to a group header so that the group header is now directly at the top of the list?
Not scrolling to the first item within a group.
Cheers
Dan
Hi,
I have a question with scrolling to location within a list.
How do I scroll to a group header so that the group header is now directly at the top of the list?
Not scrolling to the first item within a group.
Cheers
Dan
Hi Dan,
In addition to your solution, you can obtain the required group DOM node and pass it to the scrollToItem method.
JavaScriptlistWidget.scrollToItem(listWidget.element().find('.dx-list-group')[1]);
Hi,
I have got it scrolling to the group header in the list
I applied an id to the group headers and then scrolled to that id
JavaScriptjumpToClick: function (data) {
$('#timelineList').dxList('instance').expandGroup(data.itemData.id)
setTimeout(function () {
$('#timelineList').dxList('instance').updateDimensions()
$('#timelineList').dxList('instance').scrollTo($('#timelineList .dx-scrollable-content').height());
$('#timelineList').dxList('instance').scrollToItem($('#' + data.itemData.name))
}, 200)
},
To get it to work properly I have to scroll to the bottom then up to the id, if expanding the group i had to wait until the group had fully expanded, so wrapped it in a timeout.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Dan,
To process your input in the most efficient way, I've extracted your second question in a separate ticket. See dxList does not always select the first group element if this group is expanded.