Ask Your Question
1

What is the procedure for including SelectionChange as an event listener for the <ext:Column> element in ASPX?

asked 2021-06-04 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-24 01:00:00 +0000

bukephalos gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-06-04 11:00:00 +0000

Seen: 16 times

Last updated: Jun 24 '21