This is a migrated thread and some comments may be shown as answers.

Radcombo text wrap layout problem

1 Answer 40 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 1
Michele asked on 22 Feb 2011, 07:02 PM
Hi,

with radcombo we have a layout problem.
When selecting a text that wrap to newline, radcombo show only last part of selected text and not first part.
I attach a screenshot to show what appen.

Thanks a lot.

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 28 Feb 2011, 01:15 PM
Hello Michele,

I am afraid that the behaviour that you describe is default for Internet Explorer.
However you can try to overcome the issue handling the OnClientSelectedIndexChanged RadComboBox event and using the textRange object within the handler function:

<script type="text/javascript">
 
    function OnClientSelectedIndexChanged(sender, eventArgs) {
 
        if ($telerik.isIE) {
            var textRange = sender.get_inputDomElement().createTextRange();
            textRange.moveEnd('sentence', -100000);
 
            textRange.moveStart("character", 0);
            textRange.moveEnd("character", 0);
            textRange.select();
        }
    }
 
</script>

All the best,
Kalina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ComboBox
Asked by
Michele
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or