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

Grid group collapse issue

9 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ephrem
Top achievements
Rank 1
Ephrem asked on 24 Apr 2013, 11:05 PM
Hi,

Using Kendo grid I was able to bind data and group by any column. But after grouping, if I want to collapse or expand the grouped data the uisng the arrow next to the group header, this functionality is not working consistently. if it works first time it will not work after refreshing the data on the grid and vice versa.

So you please help on this?

Thanks,
Ephrem

9 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 26 Apr 2013, 03:29 PM
Hi Ephrem,

 
From the provided information it's not clear for us what is the exact reason for this behavior - could you please provide runable project where this issue is reproduced? This would help us pinpoint the exact reason for this behavior.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ephrem
Top achievements
Rank 1
answered on 29 Apr 2013, 09:21 PM
I can not send my working project but below is how i am using the grid. I have a service   which pushes data  'myData" and execute the grid bind code below every time when you load the page or hit the custom refresh button on my page. The behavior is the after grouping by one of the columns, the functionlaty to collapse/expand the group detail doesn't work. but if I hit my custom refresh button and bind new data to the grid it works and the if i did second refresh it wont..... I am also seeing the same behavior on column resize. if it works originally it wont work after refresh and will work on second refresh...

When I look in to your script. the css class you add/remove on collapse/expand on .k-grouping-row' is not taking effect.

  gridData = new kendo.data.DataSource({
                            data: myData,
                            sort: [
                                //sorting by some fields                                
                            ],
                            schema: {
                                model: {
                                    fields: {
                                        Locale: { type: "string" },
                                        //fields here
                                    }
                                }
                            },
                        });
                        $("#myGrid").data("kendoGrid").setDataSource(gridData);

Thanks,
Ephrem
0
Vladimir Iliev
Telerik team
answered on 30 Apr 2013, 06:41 AM
Hi Ephrem,

From the last response it's still unclear for us what is the reason for this behavior and I would like once again to ask you to provide a runnable project that reproduces the problem (you can create example one). Without it, we could only guess what the reason is.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ephrem
Top achievements
Rank 1
answered on 30 Apr 2013, 09:30 PM
Hi Vladimir,

Thank you for your response, Below I am attaching a working solution to reproduce the issue I am having. To see it open the zip file attached here and run it. On the index page you will see a kendo grid and a refresh link on top of it. To reproduce the issue what you have to do is,
Group it by of the columns say  by Field1 and try to collapse the grouped rows, if it works hit the refresh button above and then group again and then try to collapse it again, this time it wont work. or if it doesnt work first time, it will work after refresh.

Another issue I want to add to this is, column resizing will work on first load but it wont work after refresh.

Thanks,
Ephrem
0
Ephrem
Top achievements
Rank 1
answered on 30 Apr 2013, 09:53 PM
 In case if you want a solution that have the packages folder you can download it from  here.
https://skydrive.live.com/?cid=f4cd7993e11491e4&id=F4CD7993E11491E4%2138041

Thanks,
Ephrem
0
Vladimir Iliev
Telerik team
answered on 02 May 2013, 08:49 AM
Hi Ephrem,

 
Thank you for the provided project .

After checking it I was able to reproduce the issue on our side and it's related to the changing the dataSource of the grid, however this issue is already fixed in latest internal build (which is available for download from your account at telerik.com). For covenience I updated the provided project and attached it to the current thread.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Philip
Top achievements
Rank 1
answered on 03 Apr 2014, 05:33 PM
I am having this exact same issue. I have just updated to the latest release, and it is still no giving me the expand/collapse function without having to click the button twice. 

Is this supposed to be fixed now?
0
Philip
Top achievements
Rank 1
answered on 03 Apr 2014, 06:13 PM
Here is a sample of my project. . The grid works fine, you just have to enter a part , then hit the submit button twice before the expand collapse works again after refresh.
0
Vladimir Iliev
Telerik team
answered on 07 Apr 2014, 07:21 AM
Hi,

As this thread is out of the original topic, may I kindly ask you to open a new support thread for the Grid? In this way it is much easier to follow and concentrate on the particular issue which usually leads to its faster resolving.

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