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

Callout on buttonClicked MVVM-style

5 Answers 211 Views
Callout
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Veteran
Robert asked on 30 Sep 2020, 09:50 AM

Hi

Nice work with the new Callout-control, exactly what I needed!

 

1)

Im looking at the documentation, and I have a hard time figuring out how to popup a button on a button clicked for MVVM approach 

(I have a (i)-symbol on a button for each row in my grid that should show a popup/callout with more information for that row)

2) 

Are there example on formatted callout content (newline and bold, mostly needed)

 

 

/Thanks in advance, Robert

5 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 05 Oct 2020, 07:08 AM

Hi Robert,

Thank you for your interest in ou RadCallout control for WPF.

What you can try to show the RadCallout control is to use custom attached property. You can set it to the button and subscribe to its Click event. In the event handler, you can show the callout. To customize its content, you can create custom DataTemplate and apply it to the control's ContentTemplate property.

I have created a sample project to demonstrate the above approaches better. You can find the project attached to this reply.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Robert
Top achievements
Rank 1
Veteran
answered on 15 Oct 2020, 05:29 AM

Hi Dinko!

Thanks for your reply! It kind of works, but I want to have different content in my popups. I have added the DataTemplate to my button (which is inside a grid) and I hoped that databinding would happen before it got to the behavior. 

 I would really want a bound template into the behavior. 

 


0
Robert
Top achievements
Rank 1
Veteran
answered on 15 Oct 2020, 05:31 AM
...adding my code as a screenshot, since it seems to be viewed as "spam" if I paste in xml, even without <->-tags 
0
Robert
Top achievements
Rank 1
Veteran
answered on 15 Oct 2020, 08:17 AM
I found out the last part myself (for future googlers, see image). thanks for all help!
0
Dinko | Tech Support Engineer
Telerik team
answered on 19 Oct 2020, 07:41 AM

Hello Robert,

I am happy to hear that you have found a solution to your scenario, and thank you for sharing it with the community. If you have any other questions, you can open a new thread with your questions inside.

Regards,
Dinko
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Callout
Asked by
Robert
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Robert
Top achievements
Rank 1
Veteran
Share this question
or