-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joe Harrison
committed
Feb 10, 2015
1 parent
bf13045
commit 623e973
Showing
6 changed files
with
218 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,5 +69,10 @@ public ActionResult Export() | |
{ | ||
return View(); | ||
} | ||
|
||
public ActionResult Multiple() | ||
{ | ||
return View(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@using MVCGrid.Web | ||
@{ | ||
ViewBag.Title = "Multiple Grids"; | ||
} | ||
|
||
<h2>@ViewBag.Title</h2> | ||
|
||
<p>To have more than 1 grid on a page and still do sorting/paging/filtering, set a <code>GridDefinition.QueryStringPrefix</code> to something unique for each grid.</p> | ||
|
||
<h3>Grid 1</h3> | ||
@Html.MVCGrid("Multiple1") | ||
|
||
<h3>Grid 2</h3> | ||
@Html.MVCGrid("Multiple2") | ||
|
||
<h3>Code</h3> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading">Inside <strong>MVCGridConfig.cs</strong></div> | ||
<div class="panel-body"> | ||
<pre class="brush: csharp">@CodeSnippetHelper.GetCodeSnippet("Multiple1")</pre> | ||
|
||
<pre class="brush: csharp">@CodeSnippetHelper.GetCodeSnippet("Multiple2")</pre> | ||
</div> | ||
</div> | ||
|
||
@* | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">View</div> | ||
<div class="panel-body"> | ||
<pre>@@Html.MVCGrid("PagingGrid")</pre> | ||
</div> | ||
</div>*@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters