Showing posts with label point. Show all posts
Showing posts with label point. Show all posts

Wednesday, March 28, 2012

Accordian and Gaps between headers

Im sure that this issue has probably been addressed before, but if it has, could someone point me to the relevant post.

I have got an Accordian which is placed within a tablecell, and I have gap between the headers when first viewed. These gaps disappear when the accordian is used, or when I place the accordian outsde the table.

The accordian sample says "If you place the Accordion inside a <table> tag and have FadeTransitions set to true in Internet Explorer 6, it will affect the spacing between Accordion Panes."but I am viewing it in IE7 and have FadeTransitions set to false.

How can I get round this without removing the accordian from the table?

Thanks

Any ideas anyone?

Thanks


Sorry, this is not post with a solution, but a further gripe.

If an accordion is placed in web part (which renders eventually as a <table>), the same problem occurs. Its just taken several hours to zero in on identifying the conditions under which it happens.

The effect I see is that 10 pixels high spaces are suddenly added to the gaps between closed accordion panels when the mouse moves outside the accordions area. (Even a right click will do it). This always happens when the accordion is inside a <table>. I've searched everywhere for a surreptitious 10px padding (or two 5px ones) in the AjaxControlToolkit, in case it was being sneaked in somehow, to no avail.

Using the IE Developer Toolbar allows the space to be accurately measured and outlines the area in question quite nicely, but offers no clue as to why the gap appears.

The accordion works beautifully if there is no <table> in sight.


I know in html if there are white spaces between the table cells and an image a gap appears, which is rather annoying

ie:

<td>
<img>
</td
will have a gap, but

<td><img></td>

there is no gap, so I am assuming that this is what is happening when the Accordian is put into a table.Crying


I had this problem also. Just use nested tables. Eaxmple:

<table>

<tr><td><img src="http://pics.10026.com/?src=whatEver"></td></tr> <------- This gives you the white gap!

<tr><td><table><tr><td><img src="http://pics.10026.com/?src=whatEver"></td></tr></table><td><</td></tr> <---Should solve the problem

<table>

This only happens when using an image in the accordian. See if this helps!


I just switched over to the new release of the toolkit version 10301 released March 1. Although it is not listed as an issue that was corrected, this strange spacing problem between the according panes has gone away for me. Unfortunately now the accordion only works in IE7. When I use IE6 the accordion is visible as the page is loading, but once the page finishes loading, the entire accordion disappears.

Here is the link for the new release... (if you dare)...

http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=1425

Billy

Wednesday, March 21, 2012

A problom about updatepanel

If I put a gridview into the panel, the gridview's paging and sorting become useless.

Why? Is there a good point to instead ?

useless? what exactly are you asking? is something not working?
Hi,
It is not a problem about the update panel. You have to write a code for it.
For example:
<cc1:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridViewID="GridView1" runat="server" Style="z-index: 102; ">
</asp:GridView>
</ContentTemplate>
<Triggers>
<cc1:ControlEventTrigger ControlID="GridView1"EventName="PageIndexChanging" />
</Triggers>
</cc1:UpdatePanel
Bind a datagrid with a suitable data in page behind code.
Add a code in code behind like this.
Protected Sub GridView1_PageIndexChanging(ByValsender As Object, ByVal e AsSystem.Web.UI.WebControls.GridViewPageEventArgs) HandlesGridView1.PageIndexChanging
GridView1.PageIndex = e.NewPageIndex
End Sub
You wil get it work.
Enjoy programming.
Smile
Hi,
Make sure another thing ..
Check that EnablePartialRendering=true property in script manager.
If you didnt add this property to script manager everything works as usual with postback.
Regards,
Enjoy programming,
Muthu Kumaran.D
(Unknown is Ocean)
This is incorrect. If the gridview is inside the update panel, why do you need the trigger? I've set mine up normally (with full postbacks), then added 4 lines, open and close <atlas:UpdatePanel> and <ContentTemplate> and that was all it took.
hi rchern13,
I agree that I am wrong. But I should inform you that this method also working correctly.

A how to question...

Hi,

Please can someone point me in the right direction...?

Does anyone have any idea what is used to create the chat windows onwww.iloveim.com ?

I am currently working on a project where I want to spawn mutiple independant databaound views on a form dynamically from a gridview control. www.iloveim.com is about as close as I can get to what I am aiming for, but, I have no idea where to start... Does this use multiview? or is it dynamic panels?

Any help greatly appriciated.

Thanks in advance.

Tony

Further to the above. I am also looking at Meebo.

Same principal of spawning [x] new "windows" dynamically.

Again, any help greatly appriciated, even just the name of the control that was used.

Tony


I am aware that prgram such as Meebo, ILoveIM and e-messenger are dimly viewed by Microsoft, but, please if anyone can help with what control is used for the dialog box, I'd be very grateful as I have a client that wants this type of appraoch for his system.

He has a gridview populated with tasks, currently, when he wants to view/update a task, the application fires a new browser window. He has seen this approach and wants to fire on of these panels so he can keep the app in a single window.