Showing posts with label displays. Show all posts
Showing posts with label displays. Show all posts

Monday, March 26, 2012

UpdatePanel & AccordionExtender

To all,

this is what i have so far.. a nested repeater that displays info from a datasource... the repeaters sits inside a updatepanel which has a conditional mode that should re-render (dont know if thats the right terminology) itself base on an event...

now.. i have so far managed to get the accordion extender working such that the updatepanel re-render itself to give out the right data... but ONLY if the scriptmanager having the PartialRendering as false... ie.. the re-rendering works if the whole page is rendered... the the partial rendering is true... the repeated accordion inside the update panel all expands and the accordion action no longer works... pretty much to the point where its similar to a treeview...

below is a snippet of my code...

<div id="navigation_left" runat="server" class="accordionSpan" >
<asp:Panel ID="Panel2" runat="server">
<atlas:UpdatePanel ID="UpdatePanel1" Mode="Conditional" runat="server" RenderMode="Inline">
<Triggers>
<atlas:ControlEventTrigger ControlID="StateRadioBtnLst" EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<asp:Repeater ID="rMyRepeater" runat="server">
<ItemTemplate>
<span id="Accordion1Pane">
<div><div class="accordionHeader">
<%# Eval("Name") %>
</div></div>
<div><div class="accordionContent">
<asp:Repeater ID="rMyRepeater1" runat="server" DataSource='<%# ((BusinessObjects.MatterCategorieJoin)Container.DataItem).MatterType %>'>
<ItemTemplate>
<div><%# ((BusinessObjects.MatterType)(Container.DataItem)).Name%></div>
</ItemTemplate>
</asp:Repeater>
</div></div></span>
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>
</atlas:UpdatePanel>
</asp:Panel>
</div>

<atlas:AccordionExtender ID="AccordionExtender1" runat="server">
<atlas:AccordionProperties
TargetControlID="UpdatePanel1"
AutoSize="None"
SelectedIndex="0"
FadeTransitions="false"
FramesPerSecond="80"
TransitionDuration="150"/>
</atlas:AccordionExtender>

anyone with any idea of help??...
thanks to all who replies...

Hi tony_c,

Part of the problem is that you don't seem to have the right hierarchy of HTML elements. Check out the posthttp://forums.asp.net/thread/1333093.aspx to see how the divs and span should be nested. I would also recommend that you don't use the UpdatePanel as the TargetControlID. I'm not sure this is causing your problems, but it looks suspect.

Thanks,
Ted

Wednesday, March 21, 2012

updatepanel contenttemplate within a loginview contenttemplate control is this possible

i have an updatepanel contenttemplate within a loginview contenttemplate control and when running my form is displays the following error message

The UpdatePanel 'up1' was not present when the page's InitComplete event was raised. This is usually caused when an UpdatePanel is placed inside a template

anybody have any ideas why this is happening

hello.

well, normally you're supposed to put the loginview inside the updatepanel...


why would that be considered normal to put the loginview inside the updatepanel?

it wouldnt make sense in my situation listed below

I have different users logging on with different roles. Each role displays different controls and content and the different roles consist of a bunch of controls that i have wrapped in the updatepanel for atlas capabilities

is there no way of making this happen?


hello.

it'll only work if you instantiate the control until the init event. i think you cannot do that with this control. an option would be to put those items on several user controls and load them dinamically, according to the current user (this would have to be done till the end of the init event).


i have same problem.

I want to add updatepanel dynamically in each cell in Grid view when i set property it give error same as u get

The UpdatePanel 'up1' was not present when the page's InitComplete event was raised. This is usually caused when an UpdatePanel is placed inside a template

What solution u got..Pls Tell me.Give the code ,what to do in it.