Can a webcombo be made to be readonly so that a user cannot change the value it contains?
Thanks,
Dave
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.
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.
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;
I would like to point out that I have this problem sorted with no problems, I have populated the combo with ONE selection for a certain security group and populate the combo with all other selections for other security groups, this means the restricted user can see (black text) the option and select it but can not change it and other users can see and select the other options, hope this work around helps.
If you would read the documentation installed on your computer or you would search this forum, you will discover that
Infragistics controls have a JavaScript-based object model, also known as a client-side object model (CSOM)
No.
Error 3 'inputBox' is not a member of 'Infragistics.WebUI.WebCombo.WebCombo'.