Is there a code example for rendering WebExplorerBar in an Ajax WebMethod callback?
Hello Ray,
Unfortunately, there is no sample regarding rendering WebExplorerBar in Ajax WebMethod callback, however if you could provide some more specific information on what the sample should include, preferably adding some steps, I would try to create one. For example, would you like the WebMethod to create the WebExplorer bar and to be called with BeginAsyncOperation in the PreRenderComplete or do you want the WebMethod to just create the ExplorerBarGroups and Items and load them to the WebExplorerBar?
Looking forward to your reply.
Regards, Ivan Kitanov
I am not certain of the correct technologies, but I believe I want the following items. This most closely fits my current app.
1. Site.Master page with a single Default page
2. WebExplorerBar inside an UpdatePanel in the Site.Master page
3. WebDataGrid in the Default page
4. Click a cell in the WebDataGrid and change the WebExplorerBar
5. Update the UpdatePanel and see the results
Ultimately, the goal is to click a cell in a WebDataGrid and perform a partial page update. That partial page update would include a WebExplorerBar.
Following the provided steps I have created a small sample application. It uses the ActiveCellChanged event of the WebDataGrid, depending on the rowIndex of each cell clicked, the sample is applying some changes inside the WebExplorerBar, after that the update panel is accessed in the Default page and it is updated, which also updates the WebExplorerBar.
One additional thing that I would like to mention is that the ContentPlaceHolder needs to be placed inside the UpdatePanel as well, otherwise the ActiveCellChanged would fire after a full PostBack is done. If you don’t want to place the ContentPlaceHolder inside the UpdatePanel of the SiteMaster, then the other alternative is to place the WebDataGrid inside its own UpdatePanel and then update both panels inside the ActiveCellChanged event.
I am attaching the sample below, please test it on your side and let me know if you have any additional questions.
ExplorerBarInMasterPage.zip
Hi Ray,
I'm glad that you found my suggestion helpful.
Thank you for choosing Infragistics!
Regards,Ivan Kitanov
Your sample worked perfectly! And now my app is working! Thank you so much!!!