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

Grid Master/Details in separate UI component

0 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hatsuki
Top achievements
Rank 1
Hatsuki asked on 09 Apr 2012, 02:57 AM

Hi,
I get stuck in how to achieve the Grid Master/Details in individual Grid. Since these two Grids don't share the same Model by using the detailview, have to construct the ID for the Grid Detail through JQuery.

.Name("PricingMatrix_<#=ProductVariantsID#>")
Just wonder how could I essentially build the client binding expressions via onRowSelected() function.
$("#PricingMatrix").attr("Name", "PricingMatrix_<#=" + ProductVariantsID + "#>");
Query('#PricingMatrix').tGrid({columns:[{"title":"Price Group","member":"PriceGroup","type":"String"},{"title":"Qty","member":"Qty","type":"String"},{"title":"Amount","member":"Amount","type":"String"},{"title":"Caculate Type","member":"CaculateType","type":"String"}], total:0, currentPage:1, pageSizesInDropDown:["5","10","20","50"], pageOnScroll:false, ajax:{"selectUrl":"/Home/_SelectionClientSide_PricingMatrix?ProductVariantsID=B02D7C9E-9101-444D-9112-007BC9D6E489"},
How could I modify the ajax parameter through Jquery.
Thanks a lot for your help.
Tags
Grid
Asked by
Hatsuki
Top achievements
Rank 1
Share this question
or