Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
How can i create a TAB that is recognized in a report (.rdl)?
posted

Hi there,

Im using the webHTMLeditor to create the content for a report. But the TAB tag is not recognized in the report. So i replace it for white spaces, but ihave the problem that those aren't recognized at the start of the line either. So i thought in enter a white dot before a the white spaces. dor that i created a function in javascript that do that but the problem is that i can not style the dot to be white, it allways appears in black.

Can someone help me?

here is the function that i create:

function WebHtmlEditor1_KeyDown(oEditor, keyCode, oEvent) {

if (keyCode == 9) {
var point = document.createElement("SPAN");
var object = document.createElement("SPAN");

var style = point.style;
style.fontColor = "white";
console.log(style);

point.innerHTML = '<span style="color:white">.</span>';
object.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

console.log(object);
iged_insText(point.outerHTML);

iged_insText(object.innerText, false);
oEvent.cancel = true;
}
}

Parents
  • 25665
    Offline posted

    Hello,

    Thank you for contacting Infragistics!

    I have done some looking into this matter and have the following information. What you can do is create the item as a bulleted list (i.e. an unordered list) and the style the li element then have an span in  the li that will have the text color, for example:

    <ul>

        <li style="color: white;"><span style="color: black;">Item 1</span></li>

    </ul>

    What this will do is make the dot white and the text black.

    Please let me know if you have any further questions concerning this matter.

Reply Children