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
985
WebDropDown : MAX TEXT LENGTH = 3
posted

How to specify the WebDropDown Current Text (Entered By User) Max Length = 3

Parents
  • 13438
    posted

    Hello,

    To achieve the limitations you requested you have to add
    WebTextEditor to your page and set its property MaxLength to 3 as in the following code:
    <
    ig:WebTextEditor ID="WebTextEditor1" runat="server" MaxLength="3">

        </ig:WebTextEditor>


    and then set the  EditorID="WebTextEditor1" of the WebDropDown you want to limit. However it occurs that there is an issue with this under IE and  I have logged this behavior in our internal tracking system with a Development ID of 84465.  The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution. 

     

    I will leave this case open and update you with any new information after the review.  You can also continue to send updates to this case at any time.

     

    You can view the status of the development issue connected to this case by going to the “My IG” tab on our website, hovering to the "My Support Activity" dropdown and selecting the "Development Issues" tab. 

    you a so as a temporary solution I will suggest you to handle one of the following events of the WebDropDown:

    function
    WebDropDown1_ValueChanging(sender, eventArgs)

    {

        if (sender._elements.Input.value.toString().length > 3)

            eventArgs.set_cancel(true)

    }

     

    function WebDropDown1_InputKeyDown(sender, eventArgs)

    {

          if (sender._elements.Input.value.toString().length > 3)

                    eventArgs.set_cancel(true)

    }



    Please let me know if you need further assistance.

Reply Children