How to change Placeholder of RadChat

1 Answer 29 Views
Chat (Conversational UI)
Le
Top achievements
Rank 1
Iron
Le asked on 04 May 2025, 07:46 PM

Dear Telerik,

How can I change the placeholder of RadChat from 'Please entry a message' to other value binding to ViewModel like 'ABC...'. I have tried to use

<ContentPage.Resources>
   <Style TargetType="telerik:ChatEntry">
        <Setter Property="Placeholder" Value="ABC.." />
    </Style>
</ContentPage.Resources> --> But it made the theming of RadChat failed! Can you help tell me how to solve this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 05 May 2025, 08:31 AM

Hi Le,

I think that the only missing piece is the BasedOn property.

When you declare a local implicit style in the page, it has a higher precedence than the implicit style declared in the Telerik xaml resources (they are merged in App.xaml). So the global Telerik style for the ChatEntry is not at all taken into account.

The way to go here is to base the custom style on the global style:

<Style TargetType="telerik:ChatEntry" BasedOn="{StaticResource RadEntryStyle}">

 

I tested this in one of our test examples and I get this output:

 

Let us know if this helps.

Regards,
Petar Marchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Le
Top achievements
Rank 1
Iron
commented on 05 May 2025, 10:14 AM

Thanks Petar for your kindly support! It's OK now.

Le.

Tags
Chat (Conversational UI)
Asked by
Le
Top achievements
Rank 1
Iron
Answers by
Petar Marchev
Telerik team
Share this question
or