Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView - How to update an associated column editor in the Edit Form when the GridViewDataComboBoxColumn editor value is modified

$
0
0
This example illustrates several approaches to update the associated column editor when the GridViewDataComboBoxColumn (ASPxComboBox) editor value is modified:

1) The simplest approach implies that the associated editor value can be calculated on the client side.

2) A more complex approach when it is necessary to make a server call in order to calculate this value. We use the ASPxCallback component for this purpose.

3) Some extended version of the previous approach. The associated editor value is calculated based on the hidden column of the GridViewDataComboBoxColumn in multi-column mode.

The first thing we do in all scenarios is a subscription to the ASPxClientComboBox.SelectedIndexChanged event. In this event handler we either calculate the resulting value immediately on the client side or initiate a server callback. Finally, we call the ASPxClientGridView.GetEditor and ASPxClientEditBase.SetValue methods to update an associated column editor value.

See Also:
KA18839 - ASPxGridView - How to set column values in the Edit Form depending on another editor's value

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>