This is a migrated thread and some comments may be shown as answers.

DBLB steals focus in panorama view

1 Answer 30 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathan
Top achievements
Rank 1
Jonathan asked on 30 Dec 2013, 06:35 PM
Hello,

I have a DataBoundListBox in a Panorama view that has async data loading. When a user first opens the app, data has not loaded yet into the DBLB, and swipes to a panorama item that is not the DBLB, then when the data has loaded for that DBLB it steals focus.

To clarify
1.)  User launches app, and data has not loaded into the DBLB.
2.) While data is being downloaded asyncly, user swipes to another Panorama Item
3.) When data loading is complete, the DBLB steals focus and forces panorama to go to the view with the DBLB in it.

Is there a way to disable this autofocus?

Here's the current code for my DBLB:
<telerikPrimitives:RadDataBoundListBox  x:Name="MainListBox"
ItemsSource="{Binding List}"
SelectionChanged="listBox_SelectionChanged"
ScrollViewer.VerticalScrollBarVisibility="Auto"
ItemTemplate="{StaticResource listboxItemTemplate}"
ItemAddedAnimationInterval="0:0:0.3"
Width="400" EmptyContentDisplayMode="DataSourceEmpty"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
ItemAnimationMode="PlayOnNewSource"
CacheMode="BitmapCache"
Visibility="{Binding LoadingDone, Converter={StaticResource BoolToVisibleOrHidden}}"
ListFooterTemplate="{StaticResource listboxItemTemplateFooter}" AsyncBalanceMode="FillViewportFirst"
>
 
<telerikPrimitives:RadDataBoundListBox.ItemAddedAnimation>
    <telerikCore:RadMoveAnimation StartPoint="500, 0" EndPoint="0, 0" Duration="0:0:1">
          <telerikCore:RadMoveAnimation.Easing>
               <CubicEase EasingMode="EaseOut"/>
         </telerikCore:RadMoveAnimation.Easing>
</telerikCore:RadMoveAnimation>
</telerikPrimitives:RadDataBoundListBox.ItemAddedAnimation>
                             
</telerikPrimitives:RadDataBoundListBox>

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 02 Jan 2014, 09:21 AM

Hello Jonathan,

Thanks for writing.



We are currently not aware of similar behavior. Is there a way for you to send us your project in a ZIP archive for further investigation? This will be very helpful in identifying the cause of the undesired behavior and eventually resolving it.



You will have to open a new support ticket in order to be able to attach your project.



Thanks for your time.



Regards,

Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or