Bug tracker: Create the BugMaster view
After you create a ProjectMaster view, you create the BugMaster view. The BugMaster view displays the list of available projects. It is represented by a Razor web page. To create the view:
- In Visual Studio, navigate to the Areas » BugTracker » Views » Bug`` folder, create a new file with the
cshtmlextension.
Name the classBugMaster. - Add
usingstatements to the following namespaces:Telerik.Web.Mvc.UITelerik.Sitefinity.ModelTelerik.Sitefinity.DynamicModules.Model
- Define the type of the
Modelproperty.
Use the same type as the type of the data that you passed as themodelargument to theViewmethod in the project controller. - Create a grid to display the bugs. To create a grid, use the Telerik MVC Extensions:
- Call the
Telerikmethod of theHtmlHelperobject. - Call the
Gridmethod and pass the value of theModelproperty of the view. - Set the name of the grid by calling the
Namemethod. - Define the columns of the grid by calling the
Columnsmethod. - To define the columns, use the
columnsargument. - Use the
Templatemethod to define what to be displayed in the column. Use theTitlemethod to specify the title of the column.
- Call the
- Call the
SciptRegistrarmethod of the Telerik view component factory.
GITHUB EXAMPLE: For more information about the content of the file, see the BugMaster.cshtml file of the downloaded sample project.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.