Showing posts with label treeview. Show all posts
Showing posts with label treeview. Show all posts

Wednesday, March 28, 2012

UpdateProgress within treeView

hi...

i have treeView(populate onDemand) in updatePanel, and i want to add updateProgress animation or message, dynamically near to the selected node(parent node), someone have an idea how to implement that?

thanks...

Hi,
???Here are some sample codes about asp:TreeView working with asp:UpdateProgress for your reference.
??? <div>
<asp:UpdatePanel ID="UpdatePanel8" runat="server">
<ContentTemplate>
<asp:TreeView ID="tv" runat="server" OnSelectedNodeChanged="tv_SelectedNodeChanged">
<Nodes>
<asp:TreeNode Text="File" Value="File"></asp:TreeNode>
<asp:TreeNode Text="Edit" Value="Edit"></asp:TreeNode>
<asp:TreeNode Text="View" Value="View"></asp:TreeNode>
</Nodes>
</asp:TreeView>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress2" runat="server"
AssociatedUpdatePanelID="UpdatePanel8"
DisplayAfter="2000"
DynamicLayout="False">
<ProgressTemplate>
UpdatePanel1 is updating now!
<input type="button" id="AbortCallbackButton" value="Abort" onclick="AbortCallback()" />
</ProgressTemplate>
</asp:UpdateProgress>
<br />
This is text after the UpdatePanel and UpdateProgress controls.
<script type="text/javascript">
function AbortCallback()
{
Sys.WebForms.PageRequestManager.getInstance().abortPostBack();
}
</script>
</div
protected void tv_SelectedNodeChanged(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(10000);
}
Wish this can give you some helps.

Saturday, March 24, 2012

UpdatPanel and Session Variable

I have a treeview which populates a session variable when treeview items are selected. The session variable in turn is used to create a datatable. I have the datatable inside of an updatePanel and the trigger is the selectednodechanged event of the treeview. All of this works great. However, while the Session variable and resulting datatable are updated within the updatepanel the session variable is not updated/current when accessed by other controls/methods (that is- none of the treeview items placed inside of the session variable are there). Without the updatePanel changes to the session variable are "global" and seen by other callers. Is there any way to make the changes to the session variable that occur inside of the updatepanel "global"? Is there a way to place the session variable inside of the updatepanel?

Thanks in advance for any help or advice.

Hi rudolph41,

You should ask your question in the"Atlas" Discussion and Suggestions forum because that's where all theUpdatePanel experts are.

Thanks,
Ted

Wednesday, March 21, 2012

Urgent! Need a asp.net Ajax enabled TreeView control

Hi,

I need a asp.net ajax enabled TreeView control, its not a part of the AjaxControl Toolkit. I need to know where from I can get it.Please let me know if any of you have come accross a one.

Thanks in advance,

Subhadip

http://www.google.be/search?hl=nl&q=treeview+ajax&btnG=Zoeken&meta=

Lots over there ;)

Kind regards,
Wim