Showing posts with label multiview. Show all posts
Showing posts with label multiview. Show all posts

Wednesday, March 28, 2012

treeview in Multiview clientscript problem in new beta

Hi,

I have a problem with one of my web page... for debugging purpose I created a simple test webpage to explain the problem.
Here it is:
An updatepanel containing a multiview.
In this multiview there's 2 view, each containing a tree view and a button to go to the other view.
The default activeview is the first one.

My problem is that only the treeview in the first view works.
The treeview in the 2nd view crashes with error "Microsoft JScript: 'TreeView2_Data' is undefined." when I click a node.
Of course if I set the enableclientscript property of the treeview to off then it works okay but it does a partial postback at each node collapse-expand...

My guess is that the clientscript is not injected correctly on view change but how can I fix that ?
Btw it used to work before I updated to Beta 1.0

Thanks a lot !

Jean-Sébastien Roy

I was able to repro it and report it to the developer..

thanks for the report....

Andres


Hi,

The TreeView control is not supported inside UpdatePanels in Atlas 1.0. A future release of Atlas will support this scenario. In Atlas 1.0 you can have the TreeView outside the UpdatePanel.

Thanks,

Eilon


Thanks to you both for the fast answers !

Placing a TreeView inside an UpdatePanel is not supported on the Beta. Please look a the following documentation page (under the "UpdatePanel Compatible Controls"):http://ajax.asp.net/docs/Overview/intro/partialpagerendering/updatepanelOverview.aspx. Full support for all controls will be available on the next release of ASP.NET.

Thanks,
Federico


I had a same problem. Seems like its not supported in Beta version. Does anyone know of a workaround?

Thanks


Hi,

UpdatePanel control is used for only partial updating/partial_page rendering. You can not use the updatePanel control for Treeview and someother controls like MenuView and FileUpload.

If you need more help on this check in below link under UpdatePanel Control.

http://ajax.asp.net/default.aspx

Pradeep Kumar

Wednesday, March 21, 2012

Trouble with CalendarExtender into Multiview into UpdatePanel

Hi, I've a problem with an CalendarExtender control.
I've the CalendarExtender control in Multiview's view; in turn, the Multiview control is into updatepanel control.
The code would be roughly as follows:

<asp:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"EnableScriptGlobalization="true"EnableScriptLocalization="true">

</asp:ScriptManager>

<asp:UpdatePanelrunat="server"ID="upprueba"UpdateMode="Conditional">

<ContentTemplate>

<asp:MultiViewrunat="server"ID="mv1">

<asp:Viewrunat="server"ID="vista0">

nada

</asp:View>

<asp:Viewrunat="server"ID="View1">

<uc1:ctlAnteced_1ID="CtlAnteced_1_1"runat="server"IdPaciente="130"/>

</asp:View>

</asp:MultiView>

<asp:Buttonrunat="server"ID="boton1"Text="Vista1"/>

<asp:Buttonrunat="server"ID="boton2"Text="Vista2"/>

</ContentTemplate>

</asp:UpdatePanel>

Note: CtlAnteced_1_1 contains a CalendarExtender control.


The problem occurs in IE 6.0 (for Windows XP SP2) only; in IE 7.0 and IE 6.0 for Windows Server 2003 it works correctly. If not select a default view, then the CalendarExtender control shows backgroundless. In contrast, if I select a default view, the CalendarExtender control shows correctly.
I think this problem is because the updatepanel is preventing the script of CalendarExtender be updated on the page; but, why this doesn't happen in IE 7.0? There is something I can do to make this work in IE 6.0?

Thanks!!

What version of the AjaxControlToolkit are you using?


Hi jaimedp!! thank you for reply. I'm using september 20 AJAX Control Toolkit version's.


I was watching versions of ajax control toolkit and I discovered that the published verision that was prior to 09/20/2007. I updated the reference and it works fine now.

Thank you for your help!!Wink


I hope this thread is still fresh enough.

I am having the same problem with the calendarextender control. The symptoms:

1. It works fine in a simple web form, e.g., a web form containing only a text box and the calendar extender.

2. It works in the very first View of a MultiView control, which is set as the default view at Page_Load. It does not work in any other View.

3. If I create a simple User Control with only a textbox and the calendar extender, then embed this user control in an aspx page, it does not work. Seems that the OP dj_javi707 had it work from a User Control, would you mind giving us a little hint? Thanks.

When it does not work, the javascript error message is always:

Error: 'AjaxControlToolkit' is undefined.
Code: 0

I think it maybe because the scriptmanager of ajax control toolkit is not loaded if the control is placed in a non-default view or when the user control is loaded.

Any idea to share?


Is you scriptmanager inside the multiview? in this case I think it will not work for anyother view that does not have the scriptmanager since it's not sent to the browser.