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

Block the grouping disability of a field

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 27 Oct 2017, 07:46 AM

I'd like to block this event (group closing)..

it must not be clickable (attachment file)

 

<div id="mt" data-role="grid"
    data-groupable="true"
    data-pageable='{ "pageSize": 10}'
    data-reorderable="true"
    data-resizable="true"
    data-sortable="true"
    data-columns="[
                { 'field': 'nome','title':'Nome'}
              ]"
    data-bind="source: Product"></div>

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 31 Oct 2017, 07:44 AM
Hello, Federico,

In this scenario, I can suggest two approaches:

1) To remove the "X" icon on the group event of the Grid using jQuery:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-group

2) On the group event to check the current length of the groups and prevent the event if a group is about to be removed:

https://dojo.telerik.com/EnazI

I hope this is helpful.

Regards,
Stefan
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
Federico
Top achievements
Rank 1
answered on 31 Oct 2017, 08:21 AM

Can I do this with MVVM?

 

0
Stefan
Telerik team
answered on 01 Nov 2017, 02:06 PM
Hello,

Yes, it can be done using MVVM.

Most of all the examples can be done with the MVVM approach, they just have a different syntax for setting the properties:

http://dojo.telerik.com/oSAZIY

Regards,
Stefan
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.
Tags
Grid
Asked by
Federico
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Federico
Top achievements
Rank 1
Share this question
or