DBLB steals focus in panorama view

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Feb 2013

    Posted 30 Dec 2013 Link to this post

    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>
  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 02 Jan 2014 Link to this post

    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.
  3. DevCraft banner
Back to Top