AjaxToolkit Accordion Prevention from Opening

I am working on a project where I use AJAXToolkit Accordion. What I'm trying to achieve is the following. I want to capture the event when I clicked the heading of the Accordion so as not to open the corresponding section of the Accordion and instead return it to the server to populate the DataGrid in the body section of the Accordion, after populating the DataGrid, then expand the selection that simply prevented the opening. (I know how to start postback to the server). I searched the Internet to no avail.

+4
source share
1 answer

Cancel the client side accordion event (selectedIndexChanging) and use PageRequestManager (js object handling postbacks) to postback and get the updated mesh.

Alternatively, you can OnItemCommand(AjaxControlToolkit.AccordionCommandEventArgs)event and look for a command selectedIndex(not sure about the name) and start data binding on the grid on the server side.

0
source

Source: https://habr.com/ru/post/1609507/


All Articles