How to do binding for the checkbox? together with the user input if they choose other here? can anyone help?
The simplest implementation will be with Multiselect Widget. However, it will look slightly different:
Model
Designer
Note, strToArray transformer is used in the values binding
Runtime
For sure, you can go fancy customizing look and feel of the Multiselect with CSS or playing with input's visibility basing on selected values and so on...
Related
I want to disable ErrorSummary in my DataGrid, but I cannot find a intuitive way to do it, can someone point me out how to do it?
Thanks
Elio
There is no built-in way to disable the error summary. You'll have to apply a style to the DataGrid that doesn't include it. You can take the default style on MSDN and remove the ValidationSummary element from the XAML.
i am wondering if there is a way to skin the whole drop down box, after searching Google i could only find thing like adding icons resizing and alike, but no full skinning of the box.
Is this at all possible and if so how? i would very much like my whole program to be skinned rather than everything but the drop down boxes.
I am more of a designer than a coder so as far as code goes I'm quite a novice with the code side, would be a great help if you could give me a point in the right direction and/or a quick insight how to do it.
in flex... sorry
Thanks.
i am wondering if there is a way to skin the whole drop down box,
Yes, create a custom skin class for the DropDownList, just like you would any other Spark class. You can use code for the DropDownListSkin as a reference point for creating your own. In Flash Builder, if you create a new MXML Skin; and specify the hostComponent as a DropDownList then you'll get the DropDownListSkin code as a starter point for your customization.
For more info, read these docs on skinning Spark Components.
We did, in essence, exactly this to create our Mobile DropDownList.
My webform is generating radio buttons instead of select fields. Does anyone have any idea what might be causing this?
When you are editing that field, look down at the very bottom under display and make sure "Listbox" is checked. It is the one that says:
Check this option if you want the
select component to be of listbox type
instead of radio buttons or
checkboxes.
You didn't say what version of the module you are using, but this should be accurate for all current versions. In the future it would be a good idea to include what version you are having the issue with when asking for help.
I have a couple questions regarding JavaFX (1.3) and CSS. First of all, when I create a CheckBox node and set its styleclass, I can't actually get the checkbox to show up. It just looks like a text-label. Do I have to specify something specific to actually get the checkbox to appear?
Also, what is the CSS class/id I would use to modify all checkboxes in a program?
Have you read the JavaFX CSS Reference Guide?
http://download.oracle.com/docs/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html
I think the place you need to look at is this forum post:
Styling a checkbox and also:
Checkbox in the UI controls
I had similar issues with ListBox where the control is constructed from a number of components and has a bunch of different pseudo classes to be 'configured' depending on what you need it do look-like.
The Styling a checkbox thread points you to the javaFX runtime: $lib\ext\jfxrt.jar.
If you look in: com/sun/javafx/scene/control/skin/
caspian/caspian.css
moderna/moderna.css
You get the full naked 'defaults' CSS for the your controls. That said I am on here today to find out
A method to algn JavaFX checkbox label text with the text on a line
... how to align the text base-line, so there's still work to do before it just magically looks right lol
I'm using Flex's Advanced Datagrid for a project and need inline comments, in a similar style to Excel spreadsheet comments.
A little visual indicator should indicate if a field is associated with a comment, and on clicking on the element should open or trigger an action for displaying that particular comment.
Any suggestions on how I would go about implementing this?
Check out the ToolTipManager class and its usage