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

Can't scroll to all messages when keyboard is visible

5 Answers 141 Views
ConversationView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steven
Top achievements
Rank 1
Steven asked on 06 Oct 2012, 10:20 PM
Hi, 

I can't seem to scroll to the messages at the top of RadConversationView when the soft keyboard is on screen .. this happens in my own code, but also in the out-of-the-box telerik example solution. 

How do I get the conversation view to be the right size (i.e. to fit the parent) with the keyboard hidden and showing?

Thanks, 

Steven

5 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 08 Oct 2012, 07:12 AM
Hi Elliott,

 Thanks for writing. I am afraid that we cannot override the keyboard behavior. When it is shown, it simply translates the whole page up and some of its contents end up off screen. Since the keyboard is not a part of Silverlight we have extremely limited control over it.
Thank you for understanding.

Regards,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steven
Top achievements
Rank 1
answered on 08 Oct 2012, 11:51 PM
Hi Victor, 

Can't we use the GotFocus and LostFocus events on the textbox to adjust the size of the conversation view as this lets us know when they keyboard is on screen or not?

I have another problem with layout of the conversation view. When an application bar is on the screen and the keyboard is visible, the textbox sits too far above the keyboard, the extra distance is the same size as the application bar. The keyboard has already taken into consideration the space used by the application bar beneath it, so the textbox doesn't have to add it again. 

Can this be fixed?

Thanks, 

Steven
0
Victor
Telerik team
answered on 09 Oct 2012, 08:03 AM
Hello Steven,

Thanks for writing.
I am afraid that there is little we can do inside the conversation view to change that. All applications behave like this. If you really have to fix this you can find the text box inside RadConversationView and listen for its GotFocus and LostFocus events. Then you can apply a render transform on the conversation view to move it down. This is a hack however and should not be included inside the control itself.

Please have a look at the attached sample app. It demonstrates the exact same behavior with a simple TextBox.

Thank you for understanding.

Regards,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jakub
Top achievements
Rank 1
answered on 15 Jul 2013, 04:16 PM
Hi,
I adapted your solution introducing more TextBoxes and ScrollView. If you introduce the ScrollView, then TextBoxes which are in different positions don't behave correctly (as you said on the first answer). When the keyboard is opened, you are unable to scroll to other TextBoxes - margins are different when you open a keyboard with focus in top or bottom TextBox. Do you know if there is any solution for this problem? I can send you our example solution to take a look at it (I can't attach it to this post).

Thanks,
Jakub Żurek
0
Victor
Telerik team
answered on 18 Jul 2013, 08:03 AM
Hi Jakub,

I am afraid I do not understand what your scenario is. Please post a support ticket and attach your app so that I can debug it and give you a useful suggestion.

Regards,
Victor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ConversationView
Asked by
Steven
Top achievements
Rank 1
Answers by
Victor
Telerik team
Steven
Top achievements
Rank 1
Jakub
Top achievements
Rank 1
Share this question
or