1. #1
    Sencha User
    Join Date
    Feb 2012
    Vote Rating
    jambugunvant is on a distinguished road


    Default Set different Field inot different Row.


    We are using sencha gxt 3.0.0 beta version.

    We want to set Textfield into first row, Combobox into second row, Date field into Third row into same column.

    Can any one guide me?

    Thanks in advance,

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Redwood City, California
    Vote Rating
    WesleyMoy is on a distinguished road



    Grids are designed to represent individual data entries as rows and attributes of those entries as columns. As a result, we don't directly support the use case of having different cells to render individual rows.

    Consider using multiple HorizontalLayoutContainers to have your components line up in columns when the HorizontalLayoutContainers are stacked. This allows you to have your components line up in a tabular look without using an actual grid.

    If you're sure this is what you want to do, consider writing a custom cell that renders differently depending on the row being rendered. Your cell should implement the GWT Cell interface, which allows most methods to receive a Context object. This Context object will have the index of the row, which should allow you to do whatever row-specific substitutions are necessary. However, this is very unlikely to be what you want to do.

Thread Participants: 1