Showing posts with label accordion. Show all posts
Showing posts with label accordion. Show all posts

Monday, March 26, 2012

Proble with Accordion Control and user control

There is one problem with Accordion Conrol

I place use control in ContentTemplate of Accordion Control.

Now problem is that when Accordion Control load first HeaderTemplate Load then page load event of User control which i placed in ContentTemplate fire.

So this is problem.

Please help me.

Thanks in advance.

Not sure at what your trying to get at here, but see if this page helps.

http://asp.net/ajax/control-toolkit/live/Accordion/Accordion.aspx


Hi Piyushp,

piyushp:

Now problem is that when Accordion Control load first HeaderTemplate Load then page load event of User control which i placed in ContentTemplate fire.

It is normal to say so. Based on the order of execution, the inner contronl's pageLoad event will be occurred before the outer control(or container)'s.

Best regards,

Jonathan.

Saturday, March 24, 2012

Problem finding datasource in accordion pane

Hi, I had difficulty in finding a datasource in an accordionPane.

To start off, i had an accordionPane and it contains 3 gridviews.
The first gridview(master gridview) has its datasource binded outside the accordion and the other 2 gridviews had their datasource within the accordion and databinded already.

The error i gotten is :The DataSourceID of 'basicBookDetails' must be the ID of a control of type IDataSource. A control with ID 'bookExtensionDataSource' could not be found.
basicBookDetails is the 2nd gridview and bookExtensionDataSource is the ID of the datasource that is already binded with the 2nd gridview within the accordionPane.

Can someone help me regarding this problem? Thanks.

In the page_load try a findcontrol as below:

YourAccordionPane.FindControl("bookExtensionDataSource");