0

私はtelerikグリッドのビューを持っています。私はビュー私のTelerikグリッドで部分的に問題があり、asp.net mvcを使用しています

public ActionResult GridList(int id) 
     { 
      _genrepo.GetCategoriesForControlPlanTemplateByControlPlanID(CurrentHealthPlanId,id); 

      return PartialView(_viewModel); 
     } 

ハンターにデータを渡す午前のcontrolerコードIHAVE

は:ここで私はgrdiにして完全にデータを表示することができる午前私のグリッド

<%= Html.Telerik().Grid(Model) 
     .Name("Grid") 
     .Columns(columns => 
     { 
      columns.Bound(o => o.OrderID).Width(100); 
      columns.Bound(o => o.ContactName).Width(200); 
      columns.Bound(o => o.ShipAddress); 
      columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120); 
     }) 
     .DataBinding(dataBinding => 
     { 
      dataBinding.Server().Select("FirstLook", "Grid", new { ajax = 
       ViewData["ajax"] }); 
      dataBinding.Ajax().Select("_FirstLook", 
       "Grid").Enabled((bool)ViewData["ajax"]); 
     }) 
     .Scrollable(scrolling => scrolling.Enabled((bool)ViewData["scrolling"])) 
     .Sortable(sorting => sorting.Enabled((bool)ViewData["sorting"])) 
     .Pageable(paging => paging.Enabled((bool)ViewData["paging"])) 
     .Filterable(filtering => filtering.Enabled((bool)ViewData["filtering"])) 
     .Groupable(grouping => grouping.Enabled((bool)ViewData["grouping"])) 
     .Footer((bool)ViewData["showFooter"]) 
%> 

です私は静的なページで私を示す全体のグリッド.. 2番目のページをヒットしたときに問題があります。私はグリッドを見ることができません。私はその部分的なビューの問題を願って..私は部分的なページのページングを並べ替えるとフィルタリングを実装することができません?

このような状況を避けるために、どのように体調を整えることができますか?事前

+0

グリッド初期化子はどのように見えますか? – hunter

答えて

1

おかげでASP.NET MVCのためのTelerikグリッドコンポーネントでページングを実装する方法を説明するexampleがあります。

+2

ダーリンに感謝します。私は部分的な問題についての例を見ていますか?部分的な見解でさえ、私のグリッドの並べ替えとpaggigは動作しません。それは私の問題です。 – kumar

+0

部分的な部分は必要ありません。コントローラーアクションのプレフィックスは '_'で、' [GridAction] '属性で修飾されています。その背後では、部分的な部分よりも優れたJSONを使用しています。 –

関連する問題