Posts Tagged


Creating TreeView For MVC 5 Using my open source TreeView component

Here, in this article, we’re going to extend¬†JS Tree¬†from JS to MVC and we’ll render the HTML tags from the database using custom development in the model.

Basically, we’ll create a sample DB that contains main/sub categories with self referencing; then we’ll add support for Razor like (@HTML.TreeView); and after, we’ll render the HTML tags (<ul> <li>) based on our relations in the database.

Let’s get started.

We will proceed with the following sections.

  1. Getting Started
  2. Creating the (Code First) model
  3. Creating TreeView Component
  4. Representing Data

Read the Full Article on Csharp Corner Including the Source files