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

Get Grid's Selection inside a Grid

7 Answers 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 08 Feb 2012, 02:16 PM
Hello,

I want to get the grid's selection which is inside a parent Grid (in hierarchy way).
I tried this : http://jsfiddle.net/E9HAt/6/ but it doesn't seem to work.

Do you have any idea to achieve that ?

Regards,
Guillaume

7 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 10 Feb 2012, 05:10 PM
Hello Guillaume,

Unfortunately selection in hierarchy grids doesn't seems to work properly in current release. Only the change of the outer grid will be fired. We are working on resolving this issue.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Maxim
Top achievements
Rank 1
answered on 20 Feb 2012, 01:12 PM
Sorry for asking this, but when is the next release due or is there a workaround? Maybe in detailInit somewhere by adding data to each row using jQuery.data? Really like kendogrid but need to be able to select rows in hierarchy and fire events. Had to abandon tabstrip already due to inability to redraw jqPlots inside tabs on select, don't want to lose grids as well as they are otherwise awesome :)
0
Nikolay Rusev
Telerik team
answered on 22 Feb 2012, 08:42 AM
Hello Maxim,

Q1 Beta release is scheduled for the end of this month were the fix will be available. Unfortunately the issue is to complex and I cannot provide you with a workaround.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Paul
Top achievements
Rank 1
answered on 04 Apr 2012, 09:09 PM
Hi Nikolay,

Was this issue fixed in the Q1 release, or moved to a later release?

I do not see it listed in the release notes for web or mobile
http://www.kendoui.com/web/whats-new/release-notes/q1-2012-version-2012-1-322.aspx 
http://www.kendoui.com/mobile/whats-new/release-notes/q1-2012-version-2012-1-322-2431833760.aspx
Thank you.

Cheers,
-Paul
0
Nikolay Rusev
Telerik team
answered on 09 Apr 2012, 12:26 PM
Hello Paul,

Yes, the problem in discussed in this thread should be fixed with Q1 2012 release.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Boris
Top achievements
Rank 1
answered on 09 May 2012, 08:41 PM
Nikolay,

Please provide a quick example of how one can get the selected row from the nested grid.
Thanks!

~ Boris
0
Boris
Top achievements
Rank 1
answered on 09 May 2012, 09:04 PM
I ended up doing something like:

        var grid = $("#grid").data("kendoGrid");
        var rows = grid.table.find(">tbody>tr").find("tr.k-state-selected");
        var sel = rows[0].cells[1].innerHTML;
        alert(sel);

I made sure only the inner grid is selectable.
That works, but please provide a better solution if one exists...

~ Boris 
Tags
Grid
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Maxim
Top achievements
Rank 1
Paul
Top achievements
Rank 1
Boris
Top achievements
Rank 1
Share this question
or