Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Webcombo readonly?

Last post 10-09-2008 5:24 by mateia. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-19-2008 14:54

    • thp
    • Not Ranked
    • Joined on 03-07-2008
    • Points 65

    Webcombo readonly?

    Can a webcombo be made to be readonly so that a user cannot change the value it contains?

     

    Thanks,

    Dave

    Filed under:
    • Post Points: 20
  • 08-19-2008 19:01 In reply to

    Re: Webcombo readonly?

    I am not sure exactly what you are trying to accomplish. 

    If you do not want the user to enter new entries set the Editable property to false.

    http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Infragistics2.WebUI.WebCombo.v8.2~Infragistics.WebUI.WebCombo.WebCombo~Editable.html

    If you want the WebCombo to be disabled set Enabled to false.

    • Post Points: 20
  • 08-20-2008 9:28 In reply to

    • thp
    • Not Ranked
    • Joined on 03-07-2008
    • Points 65

    Re: Webcombo readonly?

    I want to be allow editing of data to certain users and disallow it to others depending upon their security status without using two different controls, but this is kind of what I thought. Making it not editable still allows them to change the value of the control using the dropdown and disabling makes it so grayed out that people can't read it. I don't know why Infragistics gives their stuff so many frivilous options that you can't find the commands you really need easily, yet they neglect to include things that would be very useful.

    • Post Points: 35
  • 08-25-2008 11:00 In reply to

    Re: Webcombo readonly?

    I believe that there is no option that gives you such a setting.  You may have to handle the client side BeforeSelectChange and cancel the change based on some setting that correlates to the current user.

    • Post Points: 5
  • 10-09-2008 5:24 In reply to

    • mateia
    • Top 75 Contributor
    • Joined on 11-20-2007
    • Points 959

    Re: Webcombo readonly?

     

    If you want to make the webcombo textbox readonly, then do this :

    webCombo.inputBox.readOnly = true;

     

    If you want to disable the webcombo, then do this: 

    webCombo.Element.disabled = true;

    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems