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

hierarchical grid multiple parameters

3 Answers 237 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wyatt
Top achievements
Rank 1
Wyatt asked on 05 Nov 2013, 03:10 PM
for a hierarchical grid, how do I pass multiple parameters to action?  I would like to also pass filter = somefilter

currently using this format

 .DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(5)
                .Read(
                read => read.Action("IndexBinding_acts", "RptInputMetrics", new { csg = "#=next#" }))

            )

3 Answers, 1 is accepted

Sort by
0
Ignacio
Top achievements
Rank 1
answered on 05 Nov 2013, 09:37 PM
Please read the answer for this thread

Let me know if you need help :)
0
Wyatt
Top achievements
Rank 1
answered on 06 Nov 2013, 02:27 PM
Thanks,

I have tried this method but am unsure how to get the values from the row I am working with.  Say I have a grid that has 

- state | state code|additional information
   +  City| zip code

when I click the expander on the first line I want to get state and state code to send to the controller to get the next line that shows city and zip code.
0
Petur Subev
Telerik team
answered on 08 Nov 2013, 11:55 AM
Hello Wyatt,

What exactly is the problem with the approach used within the hierarchy demo? I assume you are trying to achieve the same behavior and send the ID of the parent Grid row to the read request of the child Grid.

http://demos.kendoui.com/web/grid/hierarchy.html


Kind Regards,
Petur Subev
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
Wyatt
Top achievements
Rank 1
Answers by
Ignacio
Top achievements
Rank 1
Wyatt
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or