Cassie Mod

Cassie Mod

  • NA
  • 488
  • 70.5k

ow to load contrent from serveral action names -- KENDO UI.

Aug 15 2017 9:13 AM
  1. <div class="row">  
  2.     <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">  
  3.         @(Html.Kendo().TabStrip()  
  4.               .Name("CustomerDetailsTabStrip")  
  5.               .Animation(false)  
  6.               .Items(tabstrip =>  
  7.               {  
  8.                   tabstrip.Add().Text("Diensten")  
  9.                       .Selected(_currentTab == 0)  
  10.                       .LoadContentFrom(Url.Action("CustomerServices""Service"new { @id = Model.DebtorCode }));  
  11.                   tabstrip.Add().Text("Contractregels")  
  12.                       .Selected(_currentTab == 1)  
  13.                       .LoadContentFrom(Url.Action("CustomerContractLines""ContractLine"new { @id = Model.DebtorCode }))  
  14.                       .Visible(!Authenticate.HasRight(Right.ManageGo));  
  15.                   tabstrip.Add().Text("Eenmalige kosten")  
  16.                       .Selected(_currentTab == 2)  
  17.                       .LoadContentFrom(Url.Action("CustomerCosts""Cost"new { @id = Model.DebtorCode }))  
  18.                       .Visible(!Authenticate.HasRight(Right.ManageGo));  
  19.                   tabstrip.Add().Text("Facturen")  
  20.                       .Selected(_currentTab == 3)  
  21.                       .LoadContentFrom(Url.Action("CustomerInvoices""Invoice"new { @id = Model.DebtorCode }))  
  22.                       .Visible(!Authenticate.HasRight(Right.ManageGo));  
  23.                   tabstrip.Add().Text("Locaties")  
  24.                       .Selected(_currentTab == 4)  
  25.                       .LoadContentFrom(Url.Action("CustomerLocations""Location"new { @id = Model.DebtorCode }))  
  26.                       .Visible(!Authenticate.HasRight(Right.ManageGo));  
  27.                   tabstrip.Add().Text("Opmerkingen")  
  28.                         .Selected(_currentTab == 5)  
  29.                         .LoadContentFrom(Url.Action("Comments""Comment"new { @id = Model.DebtorCode, commentType = "1" }));  
  30.                   tabstrip.Add().Text("Orders")  
  31.                     .Selected(_currentTab == 6)  
  32.                     .LoadContentFrom(Url.Action("CustomerOrders""Order"new { @id = Model.DebtorCode }))  
  33.                     .Visible(!Authenticate.HasRight(Right.ManageGo));  
  34.   
  35.               })  
  36.         )  
  37.   
  38.     </div>  
  39. </div>  

How can i add another LoadContentFrom within the same tab ? the reason is that it is showing invoices isn't showing the last 2clumns of the invoicesgrid. this is because they have anouter action name, but the same controller name. How can i add this so i can olso see the last two colums of of the invoice grid. the name of the actrion is CDR and the controllerName is Invoice

 

thnx guys 

Answers (2)