I have created a combo box in Haml (Form_tag). I need to make it as not editable and to pass the value while clicking the submit button. I have tried "readonly" property. While using that I can able to edit that. I also tried "disabled" property. But it pass null value for that combo box.
Could you please help me on this?
I got the answer . If we use the readonly attribute in dropdown, it won't work. It will list the values in the dropdown when clicked.
For that we need to disable the dropdown and add a hidden field to that drop down which holds the selected value for that dropdown list.
Thanks,
Karthik
Related
I'm using CheckedListBoxControl of DevExpress (v18.1). When I click on the text/Caption of a list item then this item's checkbox is checked. However, I just want to check an item when I click directly on the checkbox. Can I change this behavior?
Set the CheckedListBoxControl's SelectionMode property to SelectionMode.MultiSimple
I'm using vb.net 2013.
Is there any way to access and modify the TextBox's context menu items ?
I want to hide some of these items.
And I want to translate the caption.
Thank you !
Yes there is. Example below, where you hide based on a condition that you have set.
if (yourCondition) then
yourTextBox.ContextMenuStrip.Items.RemoveByKey(theNameOfTheStrip)
end if
I'm not sure what you mean by the caption (but i think it is the text)
yourTextBox.ContextMenuStrip.Items.Item(theIndexOrKeyHere).Text
I have a dojo enhancedgrid with textbox and other read only attributes. If the item is selected, the textbox value should not be empty before submitting the button. I am not able to validate that specific textbox value as it is not part of attributes. Can anyone let me know how I can get the specific textbox value and ensure that it is not empty before submitting.
Also how can we give a unique name to each texxbox to be able to retrieve the value on server side? Thanks in advance
I have a form panel having fields like textfield and radio buttons.There are some conditions to hide textfield as per the radio button value.
have added custom validation to textfield.Suppose i have enter a invalid value to a text filed, then i clicked the radio button. as per my condition that invalid text field is now invisible.
Except that invisible field all other fields are valid. Now i want to submit the form data.
Is it possible to ignore the invisible field while submitting the form panel data.?
Thanks
Set the field not only to hidden as also to disabled, that will solve this. Or as mentioned in the comment if you just use a custom validation return true.
I wanted to know if its possible to disallow checking/unchecking of checkbox on clicking checkbox label and only allow checking/uncecking of the box on the box only.
PS: I want to pull it off without using an additional label for the checkbox i.e I wish to disable check/uncheck of checkbox on the checbox label
checking the template (here), can't see clearly how to do that. Additionally it does not have any NamedPart. For me the easiest way is that you suggested... or create your own checkbox.