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

Radcombox text cut off (radscheduler)

4 Answers 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Yelena
Top achievements
Rank 1
Yelena asked on 04 Jun 2013, 03:33 PM
I am working with the radscheduler. On the advanced Edit screen resource radcombobox text cut off despite I made the width big enough not to do this.  Please help me to fox this issue ASAP.  Thank

4 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 07 Jun 2013, 06:42 AM
Hello Yelena,

Would you elaborate a bit more on the faced issue? Please specify which version of our controls do you use? Under which browser the problematic behavior is encountered? In addition, do you replicate the same issue, if the RadComboBox is placed outside the Edit form?


Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Janice
Top achievements
Rank 1
answered on 01 May 2014, 08:54 PM
Hello,

I am having the same problem.  It seems like there is a smaller text area within the radcombobox, and it only allows a set number of characters to be displayed.

I am using the latest version of Telerik controls.  Telerik.WinControls.Schedular, Version 2014.1.403.20.

Here is the definition of the RadControl Box in my AdvancedForm  (it is using a Resource Control file)

AdvancedForm.ascx

<asp:Panel runat="server" ID="ResourceControls">
<%-- RESOURCE CONTROLS --%>
<ul class="rsResourceControls">
<li>
<!-- Resource controls should follow the convention Res[Resource Name] for ID -->
<scheduler:ResourceControl runat="server" ID="ResRoom" Type="Room" Label="Room:" />
</li>
<li>
<!-- Resource controls should follow the convention Res[Resource Name] for ID -->
<scheduler:ResourceControl runat="server" ID="ResUser" Type="User" Label="Org No:"/>
</li>
<%--<li>
<scheduler:MultipleValuesResourceControl runat="server" ID="ResUser" Type="User"
Label="User: " />
</li>--%>
<!-- Optionally add more ResourceControl instances here -->
</ul>
</asp:Panel>

ResourceControl.ascx

<script type="text/javascript" id="telerikClientEvents1">
//<![CDATA[
function ResourceValue_SelectedIndexChanged(sender,args) {
var combo = sender;
var input = combo.get_inputDomElement();
if (input.setSelectionRange) {
input.setSelectionRange(0, 0);
}
else if (input.createTextRange) {
var range = input.createTextRange();
range.collapse(true);
range.moveEnd('character', 0);
range.moveStart('character', 0);
range.select();
}
//Add JavaScript handler code here
}
//]]>
</script>
<%--
This is a custom control used for editing resources that support single values.

It contains a label and DropDownList.
--%>
<asp:Label runat="server" ID="ResourceLabel" AssociatedControlID="ResourceValue" Text='<%# Label %>' CssClass="rsAdvResourceLabel" />
<telerik:RadComboBox runat="server" ID="ResourceValue"
CssClass="rsAdvResourceValue"
ChangeTextOnKeyBoardNavigation="False"
onclientselectedindexchanged="ResourceValue_SelectedIndexChanged"
NoWrap="True" ZIndex="6000" Width="400px"/>

0
Janice
Top achievements
Rank 1
answered on 01 May 2014, 11:29 PM
Okay i think i figured out my own problem...

It had to with the Telerik css style sheet    Schedular.css

the CssClass="rsAdvResourceValue" is predefined with a width of

.RadScheduler .rsAdvancedEdit .rsResourceControls select,
.RadScheduler .rsAdvancedEdit .rsResourceControls input {
  width: 140px; }

I just changed this value to 400px and it seems to work... not sure if this is the best solution but it works..

let me know if there is a better solution...
0
Nencho
Telerik team
answered on 06 May 2014, 01:02 PM
Hello Janice,

I am happy to see that you were able to find a workaround for the faced issue. However, I was unable to replicate it at our end using the provided code snippet. Therefore, I would like to ask you to submit a support ticket along with a runnable sample attached so we could investigate the issue further.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
Yelena
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Janice
Top achievements
Rank 1
Share this question
or