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

ButtonGroup Value

5 Answers 383 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 20 Mar 2018, 02:17 PM

Hi,

is it in any way possible to get the value of a button group? Or at least have a (change) event? I haven't found anything in the docs so far.

Thanks in advance

Regards

Benny

5 Answers, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 22 Mar 2018, 09:46 AM
Hi Benny,

Indeed, by design the button group does not provide such functionality.

Instead, we need to handle the (click) event of the buttons inside the button group.

If you have the time, please submit a new feature request in our UserVoice portal, from which we generate ideas about any new features or enhancements of Kendo Ui for Angular.

Let me know in case further assistance is required for this case.

Regards,
Svetlin
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
GT
Top achievements
Rank 1
answered on 25 Mar 2018, 08:18 AM

Hi,

Is it possible to provide an example of how to achieve this in a template driven form?

Thanks.

 

0
Svet
Telerik team
answered on 27 Mar 2018, 10:48 AM
Hi,

I am not sure how the concept of template driven forms relates to the discussed feature.

Here is an example of how we can handle each button click separately:

https://plnkr.co/edit/nQbvCL8bU0z5cAxCxs01?p=preview

Please provide some more information about the desired functionality in case further assistance is required for this case.

Regards,
Svetlin
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Gary Goodwin
Top achievements
Rank 1
answered on 12 Sep 2018, 02:00 PM

The functionality would be in setting the initial value? Has NO ONE at Telerik thought of this quite obvious scenario??????

 

Gary

0
Svet
Telerik team
answered on 14 Sep 2018, 07:44 AM
Hi Gary,

Yes, we can set the value attribute of the button element as demonstrated in the following article:
https://www.w3schools.com/tags/att_button_value.asp

But, neither the ButtonGroup, nor the ButtonDirective has a value input property, that can be set. 

Could you provide some more details about the desired functionality in case further assistance is required. Thank you in advance.

Regards,
Svetlin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Svet
Telerik team
GT
Top achievements
Rank 1
Gary Goodwin
Top achievements
Rank 1
Share this question
or