473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

firing IE transition effects to smooth classic DataGrid paging events?

Is it possible to use IE transition effects (e.g.
progid:DXImageTransform.Microsoft.Fade(Duration=2) ">) to smooth "classic"
(IE non-ATLAS) datagrid paging? How do you wire up the transition effect to
fire with each paging event, (versus page load, which won't show on paging
event.)

I'm pretty sure this is possible: unless Jeff Prosise dummied up his entire
demo, he had something like this miming ATLAS-ish effects at the Tech Ed
preconference in early June.

Any suggestions out there (besides bugging Jeff? :)

Thanks,
-KF
Jul 13 '06 #1
2 1940
Hi,

Thank you for your post.

Since I didn't see Jeff's demo, I'm not sure whether or not it's a feature
using Atlas or just ASP.NET and javascript. I agree with you that this is
possible if we're building the control from ground up, here's some idea on
how to achieve this:
1) Whenever page index is changed, render the previous page into a DIV and
render the current page into anther DIV
2) Register a startup javascript to do the transition

I'm currently still doing some research on this and will get back to you as
soon as possible. Thank you for your patience and understanding.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 13 '06 #2
Hi,

I've done some test on the idea I suggested in my last mail. To do this, we
need to create a custom server control which inherits from DataGrid:

public class MyDataGrid3: DataGrid
{
private int _pendingIndex = -1;

protected override void
OnPageIndexChanged(DataGridPageChangedEventArgs e)
{
DataBind();
_pendingIndex = e.NewPageIndex;
CurrentPageIndex = e.NewPageIndex;
base.OnPageIndexChanged(e);
}

protected override void Render(HtmlTextWriter writer)
{
if (_pendingIndex != -1)
{
writer.Write("<div id='oTransContainer'
style='position:absolute; left:10px; top:10px; width:500px; height:500px;
filter:progid:DXImageTransform.Microsoft.Fade(dura tion=1.0,overlap=0.5)'>");
writer.Write("<div id='oDIV1' style='position:absolute;
left:10px; top: 10px;'>");
base.Render(writer);
writer.Write("</div>");

DataBind();

writer.Write("<div id='oDIV2' style='visibility:hidden;
position:absolute; left:10px; top:10px;'>");
base.Render(writer);
writer.Write("</div>");
writer.Write("</div>");

writer.Write(@"
<script>
function showDiv(divIndex) {
oTransContainer.filters[0].Apply();
if (divIndex == 0) {
oDIV1.style.visibility='visible';
oDIV2.style.visibility='hidden';

}
else {
oDIV1.style.visibility='hidden';
oDIV2.style.visibility='visible';
}
oTransContainer.filters[0].Play();
}

showDiv(1);
</script>
");
} else
{
base.Render(writer);
}
}
}

Some notes:
1) Because the object that the fade filter is applied to must have "layout"
before the filter effect displays, we need to give the object "layout" by
setting the height and width property, setting the position property to
"absolute".
2) Currently the three DIVs have hard-coded ID, you may need to generate
some unique IDs using the DataGrid's ClientID property.

If you have difficulty to run this customized DataGrid, I can email the
project to you.

Hope this helps. Please feel free to post here if anything is unclear.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
1
by: Christopher Pragash | last post by:
Hello All I am having a pretty wired problem...I am writing a web part (SPS 2003) that uses a Datagrid. In the web part, I create the datagird assign some properties and add event handlers for...
1
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
2
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
2
by: Luis Esteban Valencia | last post by:
I have a data grid control with a templated checkbox column residing in a asp.net user control. The checkbox boolean state determines if the item is later added or removed from another database...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
4
by: Daniel | last post by:
Hi All, I need to change the "1 2 3 4..." link button page browsing to 2 buttons which are "<" button and ">" button. is it possible? any guidelines? your help will be appreciated. thank...
3
by: danc | last post by:
I have a datagrid with a checkbox and dropdown list in each row. Both set AutoPostBack to true and ItemCommand and OnSelectedIndexChanged events for these controls works fine when DataGrid is not...
1
by: Rajani | last post by:
Hi, I have designed a form which process database Insert, edit and Delete(datagrid). I input userid,password and privilege in textboxes which has validation controls to verify data keyed in....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.