We will illustrate this with adding a property called HeaderText, of type string.
As you can see, we can also specify the category each property appears in. The above property will produce a designer looking similar to the following:
Now we can implement the View to take the value of this property and display it. In order to access the value of this property in the view, we will add it to the ViewData dictionary. This is done in our Action method in the controller.
Then we can use it in our View to display it as a header.
Once we have completed all this steps, the output of the MVC widget should be rendered correctly.
The “List of features” header is taken from the value we have entered in the widget designer.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity