I have a sample attached where I create some controls for a listView inside an Accordion. The fieldnames end in the value of the tabIndex, but we have tried many combinations and can not get the fields to tab through in the correct order.
1) If a section is closed, tabbing into it should open it. That doesn't seem to happen by default - can we configure it somehow to open if any of the inner controls have focus?
2) When new section is opened we want it to scroll up to the top of the view. We tried setting ScrollViewer.BringIntoViewOnFocusChange="True", but that didn't help. Is there some other way to scroll the newly opened section up into the center or top of the Accordion?
VRVenkateshwaran Ramdoss Syncfusion Team July 11, 2016 01:19 PM UTC
Thank you for contacting Syncfusion Support.
Query #1:" If a section is closed, tabbing into it should open it. That doesn't seem to happen by default - can we configure it somehow to open if any of the inner controls have focus?"
We have prepared a workaround sample based on your requirement. In this we have used "GotFocus" event of SfAccordionItem and set the IsSelected as True to open the focussed item. Please download the sample from the below link.
Query #2:" Is there some other way to scroll the newly opened section up into the center or top of the Accordion?"
By default the "ScrollViewer.BringIntoViewOnFocusChange" property is true, the Selected item GotFocus it gets the view. Could you please provide more details about your exact requirement. It will be help us to proceed further.
#2) If the section is way down at the bottom I think the Accordion considers it open, but our customer complains that he can't see the content. He wants us to auto-scroll (ie "center") the open section in the window. Possibly if we could catch the ItemOpened event we could force the scrolling? Seems like the ScrollViewer.BringIntoViewOnFocusChange doesn't do anything if the section header is visible.
Thanks for your help!
VRVenkateshwaran Ramdoss Syncfusion Team July 13, 2016 02:24 AM UTC
Query #1:" We have to use the ContentTemplate. Is it possible to attach to the GotFocus event using that method?"
We have modified your previously updated sample. In that we have get the SfAccordionItem from the SfAccordion control and invoke the GotFocus method and set IsSelected as True to open the Focussed item. Please download the sample from the below link.
Looks like someone posted a response to your issue! Is this issue related to the scrolling problem in SelectMode=One (124971)? If so, I am requesting a patch for 124971, so could you possible fix this one as well in the same patch?
>>Can anyone suggest that how to change the position of the ScrollViewer programmatically based on the SelectedItem?.
To meet your requirements, you can get the ScrollViewer object from the ListBox control firstly. And then invoke the ScrollViewer.ChangeViewmethod to change the view as you want. The ChangeView method need parameters such as horizontalOffset andverticalOffset. You can get the previous position and calculate how much to scroll by the selected item. Then you can set the target position to the method to change the view.
VRVenkateshwaran Ramdoss Syncfusion Team July 20, 2016 04:11 AM UTC
We have checked the reported behavior. Could you please confirm the requirement “are need to get the Selected SfAccodrionItem get into view” in the Forum 124971 and requirement in this forum are the same? This will help us to proceed further.
Regards, Venkateshwaran V.R.
DDDeanna DelapasseJuly 20, 2016 11:56 AM UTC
I believe this is the same issue as 160574. Please see that issue with my attached video. We can close this issue as we have resolved #1.
VRVijayalakshmi Roopkumar Syncfusion Team July 21, 2016 06:36 AM UTC
Thank you for the update.
Please follow-up with the incident “Accordion Scroll Issue with SelectMode=One” created under your Direct-trac account for further assistance.