When you have a RichTextBox in your custom form which you need to display as a Sharepoint: Modal Dialog Box, some times we dont see correct rendering of the Control on the form.
Reason: This is because, the form is not having any reference to the CSS.
So to get rid of this issue, we need to add the below <Link> tags as to inherit the css classes and add the below <Body> tag for exact rendering of the controls.
<link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/Themable/forms.css?rev=jBv2mfQnEZ0HhQvHMOlmFQ%3D%3D"/>
<link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/Themable/search.css?rev=T%2Bhraxktc1A8EnaG5gGMHQ%3D%3D"/>
<link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/Themable/corev4.css?rev=iIikGkMuXBs8CWzKDAyjsQ%3D%3D"/>
<body scroll="yes" onload="if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">
No comments:
Post a Comment