Announcement

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

    Change Width of FormItem Box

    Hi, I'm trying to change the form item input/output box width in my code for one formItem that is being called from the dataSource. For example trying to make the States box smaller than the description box. Do I do that in the dataSource? or would I override that in this code? Thank you... Please let me know if I can provide more details.


    isc.ClassFactory.defineClass("StatesPanel", BaseBodyPanel).addProperties({
    panelTitle: "States",
    dataSource: "rscReacctStates",

    editButtonProperties: {
    click : function() {
    this.panel.form.getItem("st_desc").setCanEdit(false);
    this.panel.editClicked();
    }
    },

    InitWidget : function() {
    this.Super("initWidget", arguments);
    }
    });

    #2
    See the DataBinding chapter of the QuickStart Guide: definitions of FormItem and other types of fields essentially inherit properties from the DataSourceField, but width is not a valid DataSourceField property since it would have different meanings in different kinds of DataBound Components.

    So you do it as part of the FormItem class, or in the creation of the FormItem.

    Comment


      #3
      Could you possibly show an example on how that would look like.

      Comment


        #4
        ? setWidth(50)?

        Or if you mean using fields in a DataBoundComponent, that again is in the QuickStart Guide.

        Comment

        Working...
        X