Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To include SelectionChange as an event listener for the <ext:column> element in ASPX, you can follow these steps:

  1. In the ASPX page, add the <ext:column> element and set its ID and DataIndex properties.
  2. Add the SelectionModelConfig property to the <ext:gridpanel> element and set its Mode property to 'Checkbox'.
  3. In the code-behind file, add the following code:
protected void Page_Load(object sender, EventArgs e)
{
    // Add the SelectionChange event listener to the Column object
    Column1.Listeners.SelectionChange.Handler = "alert('Selection change!')";
}
  1. In this example, 'Column1' refers to the ID of the <ext:column> element. You can replace this with the actual ID of your Column object.

This code adds a SelectionChange event listener to the Column object, which displays an alert message when the selection changes. You can replace the alert message with your own code to handle the selection change event.