There are two important points to consider if you are adding HTMLFeildControl to a work item.
1. First You need to have the correct type for the field that you are adding. HTML is the type that works for HTMLFeildControl.
To illustrate I have added three fields, two having type HTML and one having plain text. See the behaviour of the "PlainText" type field on a HTMLFieldControl. It does not give the HTML field control editiong options and notifies an error with color.
2. Use MinimumSize attribute
Tip from MSDN
"When you add several HTMLFieldControl elements on a form that will be stacked vertically, you should specify the MinimumSize
attribute for each field control. In this manner, you can make the text
boxes all a similar size. Otherwise, the last HTML control element is
sized to fill the form, and the previous elements appear together with
smaller text boxes."
For more information refer Control the Display of Work Item Fields: Adding Formatted Text Fields
Subscribe to:
Post Comments (Atom)
Popular Posts
-
az aks get-credentials is used to get the kubeconfig updated so that we can access AKS clusters from a terminal (You need to first use az ...
-
GitHub Actions are the CI/CD workflow implementation tool built into GitHub repos. While using the GitHub Actions workflows you may want to ...
-
In Azure DevOps YAML pipelines there are several functions available for you to use. replace is such a useful function, which you can use t...
-
Some times a silly mistake can waste lot of time of a developer. The exception “System.IO.IOException: The response ended prematurely.” whil...
-
Pull Request are the controlled way to bring in the changes to your stable branches in your Azure Git repos, or for that matter all Git prov...
No comments:
Post a Comment