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

Grouping on complex data

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cuinn
Top achievements
Rank 1
Cuinn asked on 13 Feb 2012, 01:47 AM
Hi,

I have run into an issue where the grid is unable to group on complex data.  If you take a look at this sample (http://jsfiddle.net/CuinnWylie/c7hv4/ ) you'll see some test MSDS data.  Try to drag the Areas column into the grouping section and you should run into the problem.

What happens for me is that the grouping is applied, but the header is not dropped into the grouping area and stays attached to the mouse pointer.  Also, the grouping area becomes hidden/minimised.  The other column headers are able to be successfully dropped into the grouping area.  This only seems to be corrected once the page is refreshed.

I have not attempted to debug this myself yet, but might look into it this week if I get the time.  Would be good if I can get an indication of whether this is a bug, or if this is simply not intended usage for this control.

Regards,
Cuinn.

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 13 Feb 2012, 02:12 PM
Hello Cuinn,

Indeed, you are correct about the behavior you have described. However, we managed to address it and the fix will be included in the next internal build. I have also updated your telerik points.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Cuinn
Top achievements
Rank 1
answered on 14 Feb 2012, 12:35 AM
Rosen,

Thanks for the quick response.  The updated build fixes that problem. :-)

I have run into another problem though.  If the column references a function (eg. a knockout observable) it is rendered fine, but runs into the same grouping problem.  If you take a look at http://jsfiddle.net/CuinnWylie/c7hv4/  you'll see that there is a test column that is actually a function.  I've tested this with the updated build (1413) and it still appears to be an issue.

Could this also be looked at?

Regards,
Cuinn. 

Edit
Turns out that it just needs the () added to the nameSpecialCharRegExp variable and it works fine. eg.

var nameSpecialCharRegExp = /(\[|\]|\$|\.|\:|\+|\(|\))/g

0
Rosen
Telerik team
answered on 14 Feb 2012, 01:12 PM
Hi Cuinn,

I'm afraid that having function in the data records is not supported, and operations such as filtering, grouping, sorting will not work as expected.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Cuinn
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Cuinn
Top achievements
Rank 1
Share this question
or