Showing posts with label menu. Show all posts
Showing posts with label menu. Show all posts

Monday, March 26, 2012

experience some delay in updatepanel with internet explorer?

i have tree menu and updatepanel. the selectednotechange in the tree menu triggers asyn-postback in updatepanel. I'm experiencing some delay when using with internet exploere. but works fine with firefox and opera. around 2 seconds delay when using with IE but quick with firefox and opera.

is anyone experiencing similar problem? i think was fine in ajax beta version but experienceing ajax RC version

i can see major performace issue between internet explorer and other browser. Although it is just 1 or 2 sec delay per click in internet explorer it is STILL performace issue.

IS ANY ONE EXPERIENCING PERFORMACE ISSSUE WITH INTERNET EXPLORER??


i have noticed similar performance difference between IE 7 and Firefox. Below is the code i use. IE takes around 2-3 secs for every OnSelectedNodeChanged but firefox displays the result within 1 sec. What could be the problems ?? Gridview at maximum will have 20-30 rows and 6 columns, and is all text. I belive it was working efficiently in ajax beta versions, but surely seem to have problem with IE.

Shouldn't IE be the primary and supported browser for all microsoft products?????

<asp:TreeView ID="TreeView1" runat="server" Font-Size="Small" Font-Names="Arial" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"/>

<asp:UpdatePanel ID="up1" RenderMode="Inline" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" />

</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TreeView1" EventName="SelectedNodeChanged" />
</Triggers>
</asp:UpdatePanel>

need help or other options ?


I have seen similar things when my UpdatePanel is very large, or a GridView without paging has a lot of rows and columns. To fix it, I used multiple updatepanels, and enabled paging on my gridview. IE still is a little slower than Firefox but not too bad.

Expandable Side Menu like in Excel.

Hello all,

I have a treeview on my menu on the left side of the page. Right now the width is fixed. If a name of a hyperlink is too long, the user has to use the horizontal scroll to be able to read the whole name. I remember that in the MSDN Download page, the left side menu is expandable via a drag (horizontal not vertical). Or you can use Excel as an example; you can expand the the header column horizontally as wide as you want.

Is there a sample code somewhere so I can have this behavior on my page?

The closes one i can think of is the AjaxControlToolkit:CollapsiblePanel ... combine with the Slider ... and then use javascript to update the width of the Panel while the slider is being drag ... hihihihi oh man, ... there gotta be a simplier way ... any help here? Oh, one more thing, my left side menu is collapsible via JavaScript ... not the AJax stuff. that's why CollapsiblePanel comes in mind.

By the way, can the CollapsiblePanel collapse horizontally? I don't see any option for that. ... Any input would be sweet ... thanks all.

WishStar99:

By the way, can the CollapsiblePanel collapse horizontally? I don't see any option for that. ... Any input would be sweet ... thanks all.

definitely you can make the collapsiblepanel collapse horizontally.

there is an attribute property calledExpandDirection


you're right, there is ... thanks ...


Hi,WishStar99

I'm also seeking for what you want,I did what you do last year in one of my projects.

Have you found anything that works great?

Thanks


I have not implement it yet. However, I think whatever is in my mind should be able to work. =)


If I ever accomplish it, i'll post the URL here so all can see.

Wednesday, March 21, 2012

Event/Value triggers from custom user controls

Hi, here is my problem:
I have a menu made up of asp:LinkButton(s), each one with some unique id
the menu itself is a usercontrol holding these LinkButtons in some form or another
Now, since i have many such buttons i don't want to add:
<trigger>
<atlas:ControlEventTrigger ControlID="Menu$someLinkButton" EventName="Click" />
</trigger
for each one of my LinkButtons but rather have something like:
<trigger>
<atlas:ControlEventTrigger ControlID="Menu" EventName="ItemClicked" />
</trigger>
(or use the value somehow)

to do this i need to add an event to my "Menu" and then i need to raise it somehow before postback
so only partial rendering will be done.

Can any1 help me as to how to set this up?

Tx in advance,
MeWHy dont you have a TreeView control inplace of the linkbuttons, so you can use the SelectedNodeChanged event of the TreeView?

Thanks
Well, for one thing, i need to write from right to left, and the i didn't find anywhere in the treeview support for this kind of thing.
Other than that, why not use my own? i just need to know how to setup the event and have the <atlas:updatecontrol> catch it when it triggers. i'm just not sure how to go about implementing this (altho i'm pretty sure it can't be that difficult), need someone to show me the ropes.