Last post Dec 12, 2018 05:35 AM by Nan Yu
Dec 07, 2018 10:01 AM|sapator|LINK
stxt = stxt + ' -LINKED WITH: ' + 'some text here'
and server side:
telertext.Text = rlbAvailable.SelectedItem.Text & " -LINKED WITH: " & "some text here"
I won't to make LINKED WITH bold . It won't work with bold element but from what I've read you can use innerhtml, so i tried:
textboxt.set_value(stxt).innerHTML , but it won't do anything. or textboxt.innerHTML.set_value
I could add a css class to specify bold but how would I tell it to select only whatever I use with bold?
Also I have another issue here. I need also to set the bold through server side code but I can't find an innerHtml property.
So is there a way?
Dec 10, 2018 05:09 AM|Nan Yu|LINK
Do you want to apply bold to the text except LINKED WITH ? If the control is RadInput , you can try to modify the predefined styles :
Since the problem is related to telerik control , i would suggest you post to telerik support :
Dec 10, 2018 01:04 PM|sapator|LINK
The opposite. Only bold on LINKED WITH. Also if I apply a style, won't the style be applied to all the control elements? Or from apply and forth i will understand the bold sign?
Dec 11, 2018 03:23 AM|Nan Yu|LINK
Hi sapator ,
Normally , you can't have multi-styled text within a input:text element. You'll need to use a custom text element using a div with `contenteditable` if you want formatted text :
But i can't confirm with telerik textbox since i can't test it in my environment , you can confirm that in telerik's support channel .
Dec 11, 2018 03:07 PM|sapator|LINK
It has some properties but nothing on rendering words.
I can't even seem to find innerHTML as I was thinking to <span> it up and put the desired style.
So I would either leave it be for now and learn my lesson on not using super duper controls that essentially makes your work harder or change it for a regular textbox input.
Dec 12, 2018 05:35 AM|Nan Yu|LINK
You may post to telerik support forum which may find solution with telerik controls.