Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Can Title fill with list of Text (like combobox) in

    Hello Support Team,
    I am using SmartGWT5.1 Trial version to use Diagramming, I picked your sample Example file sampleDrawingData.xml, which used to draw in pane. Suppose, When I double-click any of the rounded rectangular box, a text box is displayed to write and filled values are set as title . In below example added title as "This Tile is Text".

    So, I want to ask that is there any way to replace that title TextBox to COMBOBOX or SelectItem which could store some pre-Loaded values from DB and when user choose any of the them and it can be set as title?

    <DrawRect>
    <left>4</left>
    <top>14</top>
    <width>72</width>
    <height>62</height>
    <rounding>0.25</rounding>
    <lineWidth>1</lineWidth>
    <fillGradient ref="rect"/>
    <shadow>
    <color>#333333</color>
    <blur>2</blur>
    <offset x="1" y="1"/>
    </shadow>
    <shapeData><m00>1</m00><m01>0</m01><m02>203.5</m02><m10>0</m10><m11>1</m11><m12>96.5</m12></shapeData>
    <title>This Tile is Text</title>
    <keepInParentRect>true</keepInParentRect>
    <ID>DrawRect10</ID>

    </DrawRect>

    I hope, I am clear in putting my requirement. If you need any further clarification, Please let me know.

    Rajeev Ranjan

    #2
    This should be possible via configuring the inlineEditForm AutoChild in DrawItemEditProxy to provide your own fields. Read both the DevTools and AutoChildren overviews for background information.

    This is a fairly deep override with some risk of future incompatibility (again, see AutoChildren overview to understand this). Another approach would be to turn off the built-in supportsInlineEdit behavior in order to launch your own editing interface in response to the double-click event. You would then apply any updated title via editContext.setNodeProperties().

    Comment

    Working...
    X