Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
adding row with hidden columns
posted

I am using Infragistics v11.2.  I have a WebHeirarchicalDataGrid with only displays 1 column with 10 hidden columns.

I want to add a row that will allow the user to add data to all of the hidden columns.  This is my markup to the columns that I want to display:

<ig:RowAdding Alignment="Top" EditModeActions-EnableOnActive="true" >
                            <EditModeActions EnableOnActive="true" />
                            <ColumnSettings>
                                <ig:RowAddingColumnSetting ColumnKey="AddressPrefix" />
                                <ig:RowAddingColumnSetting ColumnKey="Address" />
                                <ig:RowAddingColumnSetting ColumnKey="AddressSuffix" />
                                <ig:RowAddingColumnSetting ColumnKey="City" />
                                <ig:RowAddingColumnSetting ColumnKey="CityMailing" />
                                <ig:RowAddingColumnSetting ColumnKey="State" />
                                <ig:RowAddingColumnSetting ColumnKey="Zip" />
                                <ig:RowAddingColumnSetting ColumnKey="CountyID" EditorID="County_DropDownProvider1" />
                                <ig:RowAddingColumnSetting ColumnKey="Lat" />
                                <ig:RowAddingColumnSetting ColumnKey="Long" />
                            </ColumnSettings>
                        </ig:RowAdding>

None of these columns display when I activate the add row behavior.  Only the visible column allows text to be added.

How can I have the user added a row to the hidden column fields?

Thanks.

Parents
No Data
Reply
  • 2535
    Offline posted

    Hi Gloria,

    Thank you for posting in our forum.

    When a column is hidden it is also hidden in the new row.

    You can set default value for a hidden columns in the RowAddingColumnsSetting.

    Also you can add a new row with programmatically where can set values for all fields. You can look at:

    http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebDataGrid_Row_Adding.html

    Please let me know if I can provide any further assistance.

Children