a question about treeview

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/26/2007 1:44:31 AM
Gravatar
Total Posts 28

a question about treeview

hello,  I am from china  ,I like the portal, the product is very wonderful. now I have a problem . how to make the page does not postback  when I click the treeview item.

9/26/2007 6:57:29 AM
Gravatar
Total Posts 18439

Re: a question about treeview

Hi,

I don't understand your question or what problem you are having.

The treeview used in the menu (as seen on this site) only does postback when you click the expand or collapse + or -. What problem is caused by postback in this case?

If you click a menu item its a get request not a post.

Joe

9/26/2007 8:26:54 AM
Gravatar
Total Posts 28

Re: a question about treeview

Hi,Joe, Thansk for your answer.

I want the treeview acted like the treeview in this page :http://www.telerik.com/community/forums/thread/b311D-mhebd.aspx

when I click the + ,it doesn't need to postback.    no refresh

 

           thanks

            wenjie

9/26/2007 8:53:29 AM
Gravatar
Total Posts 18439

Re: a question about treeview

Hi Wenjie,

The Telerik control has more capabilities than the standard asp.net treeview. You might be able to achieve the same result if you wrap the treeview inside an ajax UpdatePanel and setup asynchronous handlers for the methods that currently postback.

You also might be able to eliminate the postback by setting TreeViewPopulateOnDemand=false in layout.master on the SiteMenu control

<portal:SiteMenu id="SiteMenu1" runat="server"
UseTreeView="true"
TreeViewExpandDepth="0"
TreeViewPopulateOnDemand="false"
Direction="Vertical">
</portal:SiteMenu>

If your site has a lot of pages setting this to false can hurt performance because rendering all the tree of a large site creates a lot of markup which makes the page larger and therefore slower.

Hope it helps,

Joe

9/26/2007 9:36:36 AM
Gravatar
Total Posts 28

Re: a question about treeview

 

  Thansk  very much, I have realized the effect .  I like the no refresh treeview

   that's wonderful, thanks for your hard work. I am studying your protal now, it's very cool.

  I have created a web site based on mojoportal for my department.  it's url is :

http://www.rcjy.gov.cn.

    best regard

                                                                         wenjie

 

 

9/26/2007 9:54:06 AM
Gravatar
Total Posts 18439

Re: a question about treeview

Hi Wenjie,

Your site looks very good, I like the horizontal menu and the way you styled it.

I will link to it on the mojo sites page.

Also it would be great if you translate the .resx files to Chinese and could contribute it back to the project, I would be glad to include it.

Thanks,

Joe

9/26/2007 10:15:01 AM
Gravatar
Total Posts 28

Re: a question about treeview

Hi Joe

Thanks for your encourage .

I will try to translate the .resx files to Chinese.



Thanks

You must sign in to post in the forums. This thread is closed to new posts.