Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150557 | Jan 10,2020 07:35 PM UTC | Jan 15,2020 12:44 PM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: TreeGrid |
<style type="text/css" class="cssStyles">
.Refresh:before {
content: "\e677";
}
</style> |
[cs]
public ActionResult Index()
{
//...
treegrid.ToolbarClick = "toolbarClick";
ViewBag.TreeGridModel = treegrid;
return View();
}
[cshtml]
@(Html.EJ().TreeGrid("TreeGridControl", ViewBag.TreeGridModel))
<script>
function toolbarClick(args) {
if (args.itemName == "refresh") {
var treeObj = $("#TreeGridControl").data("ejTreeGrid");
treeObj.hideColumn("ID"); //Passing the header text to hide the column
}
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.