Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hi,

I have a requirement that I need to implement a modal popup if a hyperlink is clicked on a page.  When the modal popup is selected, the user is given a message asking if they wish to leave the site and there are two buttons on the site (cancel and ok).  If ok is clicked, a new window is opened and the user is navigated to the target url in the new window.

If the cancel button is clicked, the popup closes and the user remains on the page.

There is styling involved as well since when the window opens the page behind it appears to be disabled.  With the ModalPopupExtender, this is done using the BackgroundCssClass which is something like

.modal-background
{
    width:100%;
    min-height:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:100000;
    background-color:#333333;
    opacity:0.55;
    -moz-opacity:0.55;
    filter:alpha(opacity=55);
}

Does the RadWindow implement the same kind of functionality and if not, are there any RadControls that do?

Thanks,
Princy
Top achievements
Rank 2
 answered on 30 Dec 2010
1 answer
118 views
Hey Everybody,

I'm binding my RadScheduler to a custom data provider via a WCF service. When I use GetAppointments to return a non-recurring appointment, everything is fine. However, as soon as I try to return a recurring appointment, I get "The server method 'Get Appointments' failed". If I put a break-point in the WCF GetAppointments method, I notice that it is being called repeatedly without throwing any exceptions, but then fails and returns NO exception information to the client. Anybody have any idea what might be happening? Seems like there's some type of infinite loop happening, but I have no idea why. Any help would be greatly appreciated!

Thanks,
Landon
Veronica
Telerik team
 answered on 30 Dec 2010
2 answers
205 views
Hi, I have a page with several controls including a RadGrid.  In it, I have a LinkButton that opens a RadWindow popup using the radopen() command.  It works perfectly, the only problem is that the grid is on the bottom of the page and when I press the button to inside on of the grid's rows the RadWindow opens at the top of the page and my grid looses focus since the page is automatically scrolled to the top.  I included two screenshots to illustrate my problem: Screenshot 1 shows the grid at the bottom of the page; Screenshot 2 shows the page after the window is opened.  Here you can clearly see the problem.  I have researched your forums and codebase to no avail.  Remember that it is not a RadGrid's popup I am opening... it is a completely independent one triggered by a LinkButton inside the Grid.  Here is my RadWindowManager definition I have in the page:
<telerik:RadWindowManager ID="MasterWindowManager" runat="server" Modal="True" Skin="Black"   
        AutoSize="True" Width="450" Height="300" ShowContentDuringLoad="False"
        Style="z-index:7001" Behaviors="Resize, Close, Maximize, Move, Reload"
        DestroyOnClose="False" EnableShadow="True" KeepInScreenBounds="True" ReloadOnShow="true" VisibleStatusbar="False">
        <Windows>     
            <telerik:RadWindow ID="DefaultPopup" runat="server" DestroyOnClose="false"/>
        </Windows>
    </telerik:RadWindowManager>

Thanks for any help,
Manuel

Fiko
Telerik team
 answered on 30 Dec 2010
1 answer
127 views
I have a tabstrip having RadMultiPageView control having 3 tabs on the page and various telerik/.net controls like dropdonw, textbox etc on each tab. I have "Next" and "Previous" buttons on each tab. What I want is on click of Next button, second tab should get active/selected and similarly if I click on Previous button, previous tab should get selected. Can you please help me achieving this on client side.
Thanks
Pankaj
Shinu
Top achievements
Rank 2
 answered on 30 Dec 2010
4 answers
234 views
Hi,
I have already seen the error folowing path: http://www.telerik.com/community/forums/aspnet-ajax/menu/296630-multi-column-menu.aspx.
Now i use the Telerik with version: 2010.1.421.20. Can you send Service pack to fix this error?

Also, i want to fix other error: space of "Root RadMenuItem1" element to "|" element is small. My coding is below:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
 <style type="text/css">
    
    body
    {
        margin: 0 auto;
        padding: 0;
        text-align: center;
        width: 1000px;
    }
    

     
    
</style>    
<script type="text/javascript">


    function OnClientItemOpeningHandler(sender, args) {

        var item = args.get_item();
        // runtime positining of the submenu
        setTimeout(function() {
            var offset = item.get_element().clientWidth - item.get_childListElement().clientWidth;
            $telerik.$(".rmSlide").css("left", offset/2);
        }, 0);

    }
    
</script>    
</head>
<body>
    <form id="mainForm" method="post" runat="server">
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <table><tr>
        <td><img width="150" height="25"  src="../Common/Images/Common/BLANK.GIF" alt="" /></td>
        <td>
        
         <div >
            <telerik:RadMenu ID="RadMenu2" runat="server" Skin="Office2007" EnableEmbeddedSkins="False"  OnClientItemOpening="OnClientItemOpeningHandler">
                
                <DefaultGroupSettings RepeatColumns="5" RepeatDirection="Vertical" OffsetY="-1" OffsetX="-20" />
                <Items>
                    <telerik:RadMenuItem CssClass="HoaNguyen-TopMenu" runat="server" Text="Root RadMenuItem1" >
                        <Items>
                            <telerik:RadMenuItem CssClass="HoaNguyen-TopMenuLevelTwo" runat="server" Text="Child RadMenuItem 1">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem CssClass="HoaNguyen-TopMenuLevelTwo" runat="server" Text="Child RadMenuItem 2">
                            </telerik:RadMenuItem>
                             <telerik:RadMenuItem CssClass="HoaNguyen-TopMenuLevelTwo" runat="server" Text="Child RadMenuItem 2">
                            </telerik:RadMenuItem>
                             <telerik:RadMenuItem CssClass="HoaNguyen-TopMenuLevelTwo" runat="server" Text="Child RadMenuItem 2">
                            </telerik:RadMenuItem>                                                      
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem CssClass="HoaNguyen-TopMenu" runat="server" Text="|"  ></telerik:RadMenuItem>
                    <telerik:RadMenuItem CssClass="HoaNguyen-TopMenu" runat="server" Text="Root RadMenuItem2" >
                        <Items>
                            <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem CssClass="HoaNguyen-TopMenu" runat="server" Text="|"  ></telerik:RadMenuItem>
                    <telerik:RadMenuItem CssClass="HoaNguyen-TopMenu" runat="server" Text="Root RadMenuItem3" >
                        <Items>
                            <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </div>
</td></tr></table>



    </form>
</body>
</html>



Thanks,
PhuongLD
Shinu
Top achievements
Rank 2
 answered on 30 Dec 2010
1 answer
113 views
Hello everyone,

I am looking for a solution where by I can export grid data to CSV even when grid is invisible. This is needed for various reasons. Any ideas would be highly appreciated. 

Happy New Year 2011.

Many thanks.
MG
Princy
Top achievements
Rank 2
 answered on 30 Dec 2010
1 answer
35 views
Want to hide Insert record pop  after InsertCommand executed successfully ....

How to hide the pop up after insertion of record.

want to hide the following attached popup
Shinu
Top achievements
Rank 2
 answered on 30 Dec 2010
2 answers
69 views
I used a Radpanel embedded with RadMultiPage. I used a javascript to perform some computation,  values needs to be computed when data is retrieved from the database. This causes a postback on the "panel" and the values computed by the javascript is cleared. I need to call the javascript when the postback occur. I placed a call on the page load event. This didnt work, what can I do?

Thanks in advanced
Effendi
Top achievements
Rank 1
 answered on 30 Dec 2010
5 answers
546 views
Hi All:

I have loaded my db column declared as follows:
    [Thumbnail] [varbinary](max) NULL

I have loaded the column as follow:
Dim _pdfStream As FileStream = Nothing
Dim _fileName As String = "C:\Src\Proj\trunk\Data\2010-05-May-Cover.pdf"
If My.Computer.FileSystem.FileExists(_fileName) Then
    _pdfStream = New FileStream(_fileName, FileMode.Open, FileAccess.Read)
    Dim _length As Integer = CInt(_pdfStream.Length)
    Dim _contents(_length) As Byte
    _pdfStream.Read(_contents, 0, _length)
    _pdfStream.Close()
    ' ... insert _contents into db
End If

I reference as follows:
<asp:FormView
    id="mImageFormView" runat="server"
    DataSourceID="mImageDataSource">
    <ItemTemplate>
        <telerik:RadBinaryImage ID="rbiThumbnail" runat="server" Width="180px" Height="220px"
            DataValue='<%# Eval("Thumbnail") %>' AlternateText='No image'
            />
    </ItemTemplate>
</asp:FormView>

I am getting the following:
    The provided binary data may not be valid image or may contains unknown header

Anything wrong?
How do I verify that the image data is stored correctly?

Phil
Phil
Top achievements
Rank 2
 answered on 30 Dec 2010
2 answers
112 views
Hello,
My page has 9 buttons as toolbar and all of them perform postback. 
When using radUpload in this page, it doesn't matter which one is clicked; file is always uploaded.

Is there any way to select which element does the uploading?
Lex
Top achievements
Rank 1
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?