Radcombox text cut off (radscheduler)

5 posts, 0 answers
  1. Yelena
    Yelena avatar
    14 posts
    Member since:
    Jan 2013

    Posted 04 Jun 2013 Link to this post

    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
  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 07 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Janice
    Janice avatar
    9 posts
    Member since:
    Sep 2013

    Posted 01 May 2014 Link to this post

    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"/>

  5. Janice
    Janice avatar
    9 posts
    Member since:
    Sep 2013

    Posted 01 May 2014 in reply to Janice Link to this post

    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...
  6. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 06 May 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017