Get the typing text in RadConversationView

6 posts, 0 answers
  1. Patrice
    Patrice avatar
    7 posts
    Member since:
    Jun 2014

    Posted 14 Jan 2015 Link to this post

    Hello

    I would like to know.  How can I get the text that I typed in the RadConversationView? Cause in my project I have to get the message that type and send it via a  Http Post request in my Web Api.

    Thanks 
  2. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 16 Jan 2015 Link to this post

    Hello Patrice,

    Please have a look at the Text property which gets and sets the text of the textbox inside the conversation view. Further, RadConversationView exposes a SendingMessage event which is fired when the user presses the send button of the conversation view. It exposes the message through its event arguments. I would recommend examining the RadConversationView properties list as well as this tutorial.


    Regards,
    Dimitrina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Patrice
    Patrice avatar
    7 posts
    Member since:
    Jun 2014

    Posted 16 Jan 2015 in reply to Dimitrina Link to this post

    Thank you so much :) it was very helpful. I have some last questions (maybe a little bit stupid =_=').
    1. How can you remove the hiding mode cause each time when I click on the bubble chat it hide automatically the text inside.

    2. How to set the text that we type as a Incoming type cause each time i type it will display as a Outgoing type.

    3. Is it possible to make something like Facebook chat or hangout, I mean to put the name who send the message above the chat box (Facebook) or next to the time (Hangout)

    it will be very helpfull if you can help me me.
    Have a nice day.
    Regards
  5. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 21 Jan 2015 Link to this post

    Hi Patrice,

    As shown in the example : http://www.telerik.com/help/windows-phone/radconversationview-gettingstarted.html you can mark the messages as incoming or outgoing. Also, here is an example which shows how to group the messages and show the sender. : http://www.telerik.com/help/windows-phone/radconversationview-features-groupingmessages.html.

    Regarding the first question, could you please elaborate more or send me a sample project because I am not sure that I fully understand the scenario.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Patrice
    Patrice avatar
    7 posts
    Member since:
    Jun 2014

    Posted 02 Feb 2015 in reply to Ivaylo Gergov Link to this post

    Hi 

    Sorry to bother you again but I did something like thisConversationViewMessage msg = new ConversationViewMessage(ConversationView.Text , DateTime.Now, ConversationViewMessageType.Incoming ); 
    messages.Add(msg);
    but the text that I type is still in the outgoing side. And it displays twice my texts. What's happened I don't know 
  7. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 05 Feb 2015 Link to this post

    Hello Patrice,

    I have attached a sample app to demonstrate the scenario and it works as expected. Could you please try to modify it in order to reproduce the problem?

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner