Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Defaulttimesheet.aspx page in my application contains two buttons(search and back) and a multiview with attribute visible=false. Initially my page displays only two(Search and back) buttons when i click on search button the defaulttimesheet.aspx page colour changes to fade and displays multiview in white color. multiview contains toolbar with filter button, when i clicked on this filter button it should change the multiview colour to fade and open a search dialog also when i close the dialog the multiview colour should changed to white. Am able to open the dialog but not possible to fade the view. How can i do this? Anyone plz help me..............

Thanks in advance
Posted

Add one divtag with id=divSearch and place the multiview content inside that div.
In defaulttimesheet.aspx inside openDialog added this code to fade before showmodaldialog

$get('<%=divSearch.ClientID %>').className = "gray";

and following code after showmodaldialog

$get('<%=divSearch.ClientID %>').className = "white";.

Add these two classes inside default.css
CSS
.gray
    {
        position: absolute;
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%; /*background-color: gray;*/
        opacity: .5;
        filter: alpha(opacity=50);
    }

    .white
    {
        position: absolute;
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%;
        opacity: 1;
        filter: alpha(opacity=100);
    }
 
Share this answer
 
v2
Have a look around on jQuery. You can find quite similar stuff there, do the changes are you want.

Or else you can write your own library to do this.
 
Share this answer
 
Comments
Anitha MS 12-Jun-12 2:43am    
Hi, here is my jquery and divid to fade defaulttimesheet.aspx at first time
function fade() {
$get('<%= divFade.ClientID %>').style.display = 'inline';
}

function fade_out() {
$get('<%= divFade.ClientID %>').style.display = 'none';
}
<div id="divFade" runat="server" class="gray_overlay" style="display: none">
</div>
it's not possible for me to fade the multiview by calling it for second time inside open dialog contained in defaulttimesheet.aspx. How can i do this?

Thanks in advance
CodingLover 12-Jun-12 4:09am    
You mean only first time its get fade, but not in second time?
Anitha MS 15-Jun-12 3:18am    
Hi, do you have any other solution to fade the page on second time? the one i mentioned is working fine in my workspace but not in other workspace....... plz help me...

thanks
Anitha MS 12-Jun-12 5:41am    
Thanks for your reply..... i got solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900