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

Appointments in a scheduler has an attribute "state"  that can be modified by the user. The appointment state transitions  to 5-6 states.
I would like to display all those appointments  that are in state 4 and state5 in Reminder window at 8:00 clock, 12:00 Clock and 4 :00 Clock.
I would like to display all appointments that are in state1 and state 2  in  Reminder Window  at 10:00 clock, 12:00 Clock and 3:00 clock.

Is this possible, if yes how can I achieve above objective?

Thanks,
Prava
Plamen
Telerik team
 answered on 03 Dec 2012
1 answer
54 views
Help me :(

i created a web page that has a object radupload with the property automatic upload....In this page i've inserted the object radprogress too.
The radupload works perfectly, but the radprogress no!
The radprogress does not appear...
(i use telerik Q3 2012)
this my code vb 2010 and aspx and my web.cofig

Private Sub Imgbtnupload_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnupload.Click
        If RadUpload1.UploadedFiles.Count > 0 Then
            Label1.Text = "File uploaded: " & RadUpload1.UploadedFiles.Item(0).FileName & "(" & RadUpload1.UploadedFiles.Item(0).ContentLength & " " & "bytes)"
        Else
            Label1.Visible = True
        End If
    End Sub
<form id="form1" runat="server">
    <telerik:RadAjaxManager runat="server">
    </telerik:RadAjaxManager>
    <div style="font-family: Verdana; font-size: small; background-image: url('Image/Upload.jpg'); background-repeat: no-repeat; width: 350px; height: 380px">
         <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
             Skin="Office2010Silver">
         </telerik:RadAjaxLoadingPanel>
         <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
             <telerik:RadProgressManager ID="RadProgressManager1" Runat="server" />
             <table style="border: 0px; margin: 0px; padding: 0px; width: 350px;">
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:23px"
                         colspan="2">
                          </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:23px"
                         colspan="2">
                         </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:23px"
                         colspan="2">
                         <asp:Label ID="Label1" runat="server" Text="Nessun file caricato"
                        ForeColor="Green"></asp:Label>
                     </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: left; vertical-align: top; height: 50px"
                         colspan="2">
                         <telerik:RadUpload ID="RadUpload1" Runat="server"
                        AllowedFileExtensions="jpg,jpeg,png,gif" OverwriteExistingFiles="True"
                        TargetFolder="image/image_utenti" ControlObjectsVisibility="None"
                        InputSize="40" Height="22px" style="text-align: left" Skin="Sunset"
                             Width="343px">
                             <Localization Select="Cerca" />
                         </telerik:RadUpload>
                         <asp:CustomValidator ID="CustomValidator1" runat="server"
                        ErrorMessage="File errato o non selezionato" ClientValidationFunction="validateRadUpload"
                        OnServerValidate="CustomValidator1_ServerValidate" ForeColor="Red"></asp:CustomValidator>
                         <div style="font-size:x-small">
                             Il file deve avere le seguenti estensioni: .jpg, .jpeg, .png
                         </div>
                         <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                                     <script type="text/javascript">
                                         function validateRadUpload(source, e) {
                                             e.IsValid = false;
                                             var upload = $find("<%= RadUpload1.ClientID %>");
                                             var inputs = upload.getFileInputs();
                                             for (var i = 0; i < inputs.length; i++) {
                                                 //check for empty string or invalid extension    
                                                 if (inputs[i].value != "" && upload.isExtensionValid(inputs[i].value)) {
                                                     e.IsValid = true;
                                                     break;
                                                 }
                                             }
                                         }
                 
                                     </script>
                         </telerik:RadCodeBlock>
                     </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:10px"
                         colspan="2">
                          </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:40px">
                         <asp:ImageButton ID="Imgbtnupload" runat="server"
                             ImageUrl="~/Image/Upload.png" />
                     </td>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:40px">
                         <asp:ImageButton ID="Imgbtnesci" runat="server" ImageUrl="~/Image/esci1.png"
                             ValidationGroup="esci" />
                     </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:23px"
                         colspan="2">
                          </td>
                 </tr>
                 <tr>
                     <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding: 0px; text-align: center; height:130px"
                         colspan="2">
                         <telerik:RadProgressArea ID="RadProgressArea1" Runat="server"
                             HeaderText="Caricamento in corso attendere..." Height="130px" Skin="Sunset"
                             progressindicators="FilesCountBar, FilesCount, FilesCountPercent, SelectedFilesCount, CurrentFileName"
                             Width="350px">
                         </telerik:RadProgressArea>
                     </td>
                 </tr>
             </table>
    </div>
    </form>
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Telerik.Skin" value="Sunset" />
    <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
  </appSettings>
  <system.web>
    <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
    <customErrors mode="Off" />
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
    </modules>
    <handlers>
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.1.12.820, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="104857600" />
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>
Plamen
Telerik team
 answered on 03 Dec 2012
1 answer
64 views
I created an "article rotator" for a magazine using the RadRotator back in Spring 2011.  All worked well until I updated the Telerik assemblies from version 2010.2 to 2012.2SP1.  Soon after, I noticed that my rotators would do one transition, then stop.  There were no javascript errors or anything other problems I could detect.  I eventually discovered the problem.  I want immediate transitions (no "swipe" appearance during scrolls).  The older versions used to allow ScrollDuration = 0 for the effect.  However, for some reason, this is no longer the case.  If I simply change ScrollDuration = 1, then all works well again (and 1 millisecond is not noticeable).  

I was unable to find anybody else discussing this specific problem, so I figured I'd post just in case there are some other late adopters to the 2012 assemblies who may encounter this problem.  I'm not sure when things changed, but it was somewhere between early 2011 and mid 2012.  Hope this helps somebody.
Slav
Telerik team
 answered on 03 Dec 2012
1 answer
55 views
Hello All,

Normally the telerik scheduler have the day view and all events and activities pertain to that day displayed on that,

Now I have situation where I want to show day view with additional columns. So let's I have 5 employees so I can show 5 Employees names on top and their activities in content area with time they are going to perform.

So to visualize in week-view we have day names and fix no of days but I want employee names and they need to be dynamic.

Please provide me any link reference on how to achieve this is any.

Thanks,
Jigar
Plamen
Telerik team
 answered on 03 Dec 2012
3 answers
128 views
Hi,
    I want to disable the recurrence editor its works fine in IE but in Firefox recurrence editor is not disable.
Code:
              i)       var elem = document.getElementById("divRecRule").getElementsByTagName("*");
                        for (var i = 0; i < elem.length; i++) {
                            elem[i].setAttribute('disabled', true);                        
                        }
              ii)       var elem = document.getElementById("divRecRule").getElementsByTagName("*");
                        for (var i = 0; i < elem.length; i++) {
                            elem[i].disabled = true;
                        }
I tried this both.....
In IE,


In FireFox,


Thanks,
Prasanna
Plamen
Telerik team
 answered on 03 Dec 2012
1 answer
72 views
Hi,
i've the problem with progressarea...Into my page aspx i've a radupload and a radprogress...but when i start the upload, the files are transferred, but does not appear progressarea...this my code vb and asp is:
Protected Sub ImageButton1_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtncarica.Click
    If RadUpload1.UploadedFiles.Count > 0 Then
        Repeater1.DataSource = RadUpload1.UploadedFiles
        Repeater1.DataBind()
        Label1.Visible = False
        Repeater1.Visible = True
    Else
        Label1.Visible = True
        Repeater1.Visible = False
    End If
End Sub

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
<telerik:RadProgressManager ID="RadProgressManager1" Runat="server" />
<telerik:RadUpload ID="RadUpload1" Runat="server"
                        AllowedFileExtensions="jpg,jpeg,png,gif" OverwriteExistingFiles="True"
                        TargetFolder="Public/image" ControlObjectsVisibility="None"
                        InputSize="40" Height="22px" style="text-align: left" Skin="Sunset"
                             Width="343px" CssClass="RadUploadProgressArea" Culture="it-IT">
                             <Localization Select="Search" />
                         </telerik:RadUpload>
 
                         <asp:Repeater ID="Repeater1" runat="server" Visible="False">
                             <HeaderTemplate>
                                 <div style="color: green">
                                     File caricato:</div>
                             </HeaderTemplate>
                             <ItemTemplate>
                                 <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                                 <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                                 <br />
                             </ItemTemplate>
                         </asp:Repeater>
Plamen
Telerik team
 answered on 03 Dec 2012
1 answer
58 views
Hello ,

I have rad grid having allgeneratecolumn true, I have bind it dynamically with datasource.
I am exporting the data to excel, but now I want to export only headers of grid to excel not the data
I want only headers of grid in exported excel.

Thanks
Amit
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Dec 2012
3 answers
155 views
HI Team,
i have the telerik control in ajax model popup extender. when i click the hyper link after selecting word, hyperlink manager window is opening at backside of model popup extender i can see the hyperlink manager,but when i close the ajax model popup window i can see the hyper link manager,, how do i display the hyperlink manager in front of ajax model popup extender..here is my code..
<asp:Button ID="btnEdit" runat="server" Style="display: none" CausesValidation="false" />
            <asp:ImageButton ID="imgbtnEditAPEC" runat="server" ImageUrl="~/img/edit.png" ToolTip="Edit APEC Informatin"
                 />
<ajax:ModalPopupExtender ID="mpeEdit" runat="server" Enabled="true" TargetControlID="btnEdit"
                    PopupControlID="panEdit" BackgroundCssClass="modalBackground" CancelControlID="btnCancelEdit"
                    DropShadow="false">
                </ajax:ModalPopupExtender>
                <asp:Panel ID="panEditAPEC" runat="server" BackColor="White" BorderColor="Gray" BorderStyle="Solid"
                    Width="55%" Height="25em" BorderWidth="1px" Style="display: none">
                                               <div >
                                <asp:Button ID="btnCancelEditAPEC" runat="server" CausesValidation="false" Text="X"
                                    CssClass="BtnLogin" Width="40px" Font-Bold="true" ToolTip="Close Window" />
                            </div>
                         
                        </div>
                        <br />
                      
                            <div>
                                <center>
                                    <telerik:RadEditor ID="radEditAboutAPEC" runat="server" EditModes="Design" Style="min-width: 100%;
                                        width: 100%;" Height="250em" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"
                                        BackColor="White" NewLineBr="false" EnableResize="false">
                                        <CssFiles>
                                            <telerik:EditorCssFile Value="~/styles/Default.css" />
                                        </CssFiles>
                                        <Tools>
                                            <telerik:EditorToolGroup>
                                                <telerik:EditorTool Name="LinkManager" />
                                                <telerik:EditorTool Name="Unlink" />
                                                <telerik:EditorTool Name="FormatBlock" />
                                                <%--<telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" />--%>
                                                <telerik:EditorTool Name="Bold" />
                                                <telerik:EditorTool Name="Italic" />
                                                <telerik:EditorTool Name="Underline" />
                                                <telerik:EditorTool Name="JustifyLeft" />
                                                <telerik:EditorTool Name="JustifyCenter" />
                                                <telerik:EditorTool Name="JustifyRight" />
                                                <telerik:EditorTool Name="JustifyFull" />
                                                <telerik:EditorTool Name="JustifyNone" />
                                                <telerik:EditorTool Name="Indent" />
                                                <telerik:EditorTool Name="Outdent" />
                                                <telerik:EditorTool Name="InsertUnorderedList" />
                                                <telerik:EditorTool Name="InsertOrderedList" />
                                                <telerik:EditorTool Name="ToggleScreenMode" />
                                                <telerik:EditorTool Name="Zoom" />
                                            </telerik:EditorToolGroup>
                                        </Tools>
                                        <RealFontSizes>
                                            <telerik:EditorRealFontSize Value="0.5em" />
                                            <telerik:EditorRealFontSize Value="0.75em" />
                                            <telerik:EditorRealFontSize Value="1em" />
                                            <telerik:EditorRealFontSize Value="1.25em" />
                                            <telerik:EditorRealFontSize Value="1.5em" />
                                            <telerik:EditorRealFontSize Value="1.75em" />
                                            <telerik:EditorRealFontSize Value="2em" />
                                            <telerik:EditorRealFontSize Value="2.25em" />
                                            <telerik:EditorRealFontSize Value="2.5em" />
                                            <telerik:EditorRealFontSize Value="2.75em" />
                                            <telerik:EditorRealFontSize Value="3em" />
                                            <telerik:EditorRealFontSize Value="3.25em" />
                                            <telerik:EditorRealFontSize Value="3.5em" />
                                            <telerik:EditorRealFontSize Value="3.75em" />
                                            <telerik:EditorRealFontSize Value="4em" />
                                            <telerik:EditorRealFontSize Value="4.25em" />
                                            <telerik:EditorRealFontSize Value="4.5em" />
                                            <telerik:EditorRealFontSize Value="4.75em" />
                                            <telerik:EditorRealFontSize Value="5em" />
                                        </RealFontSizes>
                                    </telerik:RadEditor>
                                </center>
                                <div >
                                    <asp:Button ID="btnUpdateAPEC" runat="server" CausesValidation="false" Text="Save"
                                        CssClass="BtnLogin" ToolTip="Save" />
                                </div>
                      
                    </div>
                  
                </asp:Panel>

Rumen
Telerik team
 answered on 03 Dec 2012
1 answer
92 views
I want RAD Editor control to format the text but in Read only mode.

For example I have a text in a RAD Editor. I don't want to edit that text but I want it to highlight it with the back color control or something else.

Could you please help me.
Rumen
Telerik team
 answered on 03 Dec 2012
2 answers
324 views
Hi everyone,
I have a problem in accessing controls inside the contenttemplate area of a radwindow using javascript:
My application opens a radwindow with a text and an animated gif when pressing a button on the main page and performing a postback event.
After some seconds the postback is performed and the radwindow is closed.
If the server for some reasons does not answer the call and the postback event is not performed, after a determined period of time the radwindow changes is content: the text should be subsituted by an other text and the animated gif should be no more visible and also a button should appear.

My problem is that after the determined time (fixed by me) I cannot change controls parameters by client-side (javascript): I' m not able to access using API che contenttemplate of the radwindow and its controls.

Here is my code:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableSkinTransparency="True" RegisterWithScriptManager="True" BackgroundPosition="Center" EnableAjaxSkinRendering="True" HorizontalAlign="Center" BorderStyle="NotSet" Skin="Transparent" EnableViewState="True" EnableEmbeddedBaseStylesheet="True" EnableEmbeddedSkins="True" EnableEmbeddedScripts="True" IsSticky="False" SkinID="Transparent" MinDisplayTime="1000" CssClass="RadAjaxLoadingPanel1">
         
    </telerik:RadAjaxLoadingPanel>
 
<asp:PlaceHolder ID="PlaceHolderGrid" runat="server">
    <asp:HiddenField ID="HiddenField1" runat="server" />
            <table cellpadding="6" cellspacing="0" style=" width:100%; background-color: #FFFFFF; " >
           
                    <tr>
 
                           
 
                         <td valign="top" style=" padding-top:10px; border-style: solid; border-bottom-color: #e4dfdf; border-width: 0px 0px 1.5px 0px;">
                              
                            <qsf:CommandBar runat="server" ID="CommandBar1" />
           
                        </td>
                    </tr>
                    <tr>
                    <td>
                    <table>
                    <tr>
                    <td>
                    <asp:DropDownList ID="SelectCampi" runat="server">
                                     <asp:ListItem Text="In processo" Value="In processo"></asp:ListItem>
                                    <asp:ListItem Text="Spediti" Value="Spediti"></asp:ListItem>
                                    <asp:ListItem Text="Tutti" Value="Tutti"></asp:ListItem>
                    </asp:DropDownList>
                    </td>
                    <td>
                                   <asp:Button ID="ButtonEseguiFiltro" runat="server" Text="Esegui Ricerca" CssClass="input" />
                                   </td>
                    <td>
                     
                    </td>
                    <td>
                        <input id="Button1" type="button" value="Refresh" onclick="Refresh()" class="input" />
                    </td>
                    </tr>
                    </table>
                    </td>
                    </tr>
 
                    <tr>
                    <td width="100%">
                    <table style="width: 100%">
                    <tr>
                    <td>
                    <table>
                    <tr>
                    <td>
                    <asp:ImageButton ID="ButtonSend" runat="server" Text="Play" OnClick = "ButtonSend_onClick" OnClientClick="Popup();" ImageUrl="~/Admin/images/Imager_Grid_Play.png" />
                    </td>
                    <td style="white-space: nowrap; width: 75px;">
                    <asp:LinkButton runat="server" ID="LinkSend" Font-Size="X-Large" ForeColor="#00CC00" OnClick = "ButtonSend_onClick" OnClientClick="Popup();">Invia</asp:LinkButton>
                    </td>
                    <td>
                          
                    </td>
                    <td>
                    <asp:ImageButton ID="ButtonStop" runat="server" Text="Stop" OnClick = "ButtonStop_onClick" OnClientClick="Popup();" ImageUrl="~/Admin/images/Imager_Grid_Stop.png" /> 
                    </td>
                    <td style="white-space: nowrap; width: 75px;">
                    <asp:LinkButton runat="server" ID="LinkStop" Font-Size="X-Large" ForeColor="#CC3300" OnClick = "ButtonStop_onClick" OnClientClick="Popup();">Sospendi</asp:LinkButton>
                    </td>
                    <td>
                      
                    </td>
                    <td>
                    <asp:ImageButton ID="ButtonCancella" runat="server" Text="Cancella" OnClick = "ButtonCancella_onClick" OnClientClick="Popup();" ImageUrl="~/Admin/images/Imager_Grid_Cancel.png" />
                    </td>
                    <td style="white-space: nowrap; width: 75px;">
                    <asp:LinkButton runat="server" ID="LinkCancella" Font-Size="X-Large" ForeColor="#CC3300" OnClick = "ButtonCancella_onClick" OnClientClick="Popup();">Rimuovi</asp:LinkButton>
                    </td>
                    <td>
                      
                    </td>
                    </tr>
                    </table>
                    </td>
                    <td align="right" width="100%">
                    <table width="100%" align="right">
                    <tr>
                    <td align="right" width="100%">
                    <table align="right">
                    <tr>
                    <td align="right">
                    <asp:Image ID="Image" runat="server" ImageUrl="~/Admin/images/Imager_Grid_NoConnect.png" ImageAlign="Right" />
                    </td>
                    <td align="right">
                    <asp:Label runat="server" ID="LabelConn" Text="Server Disconnesso" Font-Size="Large" ForeColor="#CC3300"></asp:Label>
                    </td>
                    </tr>
                    </table>
                    </td>                                      
                    
                    </tr>
                    </table>
                    </td>
                    </tr>
                    </table>
                    </td>
                    </tr>
        
        
                     <tr>
                        <td width="100%">
                            <table cellpadding="8" cellspacing="0"style=" width:100%; " >
                                
                               
                                <tr>
                                    <td style=" width:100%" >
                                                                     
                                            <asp:Label ID="LabelSelCat" runat="server"  Visible="true" Text="" />              
                                            <asp:Label ID="LabelIDMailing" runat="server" Text="-1" Visible="true" />                                  
                                                                                                 
                                                <telerik:radgrid    ID="RadGridMailing"                                                                    
                                                                    runat="server"
                                                                    GridLines="Vertical"
                                                                    AllowPaging="true"
                                                                    AllowFilteringByColumn="False"
                                                                    AutoGenerateColumns="False" 
                                                                    onItemCommand="RadGridMailing_ItemCommand"
                                                                    PageSize="15" ItemStyle-Wrap="True" AlternatingItemStyle-Wrap="True" MasterTableView-ViewStateMode="Inherit" CssClass="RadGrid_Test" MasterTableView-BorderStyle="None" BorderStyle="None" EnableEmbeddedBaseStylesheet="True" EnableEmbeddedSkins="False">
                                                                     
                                                     <ItemStyle Wrap="False" />
                                                     <AlternatingItemStyle Wrap="True" />
                                                                     
                                                                     
                                                     <PagerStyle    Mode="NumericPages"
                                                                    FirstPageText="Prima"
                                                                    FirstPageToolTip="Prima"
                                                                    LastPageText="Ultima"
                                                                    LastPageToolTip="Ultima"
                                                                    NextPagesToolTip="Successiva"
                                                                    NextPageToolTip="Successiva"
                                                                    PagerTextFormat="Cambia Pagina: {4} &nbsp;Pagina <strong>{0}</strong> di <strong>{1}</strong>"
                                                                    PrevPagesToolTip="Precedente"
                                                                    PrevPageToolTip="Precedente" 
                                                                    />
                                                                                                                 
                                                    <MasterTableView    NoMasterRecordsText="Nessuna Mailing presente"
                                                                        GridLines="None"
                                                                        AllowPaging="true"
                                                                        AllowFilteringByColumn="False"
                                                                        ClientDataKeyNames="IDMailing"
                                                                        TableLayout="Fixed"                                                                                                                                               
                                                                        EditFormSettings-EditFormType="AutoGenerated" ViewStateMode="Inherit" AllowAutomaticUpdates="False" ItemStyle-Wrap="True">
                                                        <Columns>
                                                            <telerik:GridClientSelectColumn HeaderStyle-Width="30px"
                                                                                            UniqueName="CheckboxSelectColumn"
                                                                                            FooterText="CheckBoxSelect footer" 
                                                                                            visible="false"
                                                                                            ItemStyle-Wrap="True">
                                                                <HeaderStyle Width="30px" />
                                                            </telerik:GridClientSelectColumn>
 
 
 
                                                            <telerik:GridTemplateColumn Resizable="False" HeaderStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="True">
 
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="headerChkbox" AutoPostBack="True" OnCheckedChanged="RadGridMailing_HeaderCheckChanged" runat="server">
                                                                    </asp:CheckBox>
                                                                </HeaderTemplate>
 
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="CheckBoxSet" runat="server">
                                                                    </asp:CheckBox>
                                                                </ItemTemplate>                                                              
                                                                <HeaderStyle Width="50px" />
                                                            </telerik:GridTemplateColumn>                                                        
 
                                                            <telerik:GridTemplateColumn ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="False" HeaderStyle-HorizontalAlign="Center" Resizable ="False">
 
                                                                <HeaderTemplate>
                                                                    <asp:Label ID="LabelDoc" runat="server" Text="Doc"></asp:Label>
                                                                </HeaderTemplate>
 
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="image1" runat="server" ImageUrl="~/Admin/images/documento_comune_256x256.png" Width="25" ImageAlign="Middle" Height="25" OnClick="image1_onClick"/>
                                                                </ItemTemplate>                                                               
                                                                <HeaderStyle Width="50px" />
                                                            </telerik:GridTemplateColumn>
 
                                                            <telerik:GridBoundColumn DataField="IDMailing" HeaderText="ID" Resizable="False" ItemStyle-Wrap="True" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center" MaxLength="25" HeaderStyle-HorizontalAlign="Center">                                           
                                                                <HeaderStyle Width="50px" />
                                                            </telerik:GridBoundColumn>
 
                                                            <telerik:GridTemplateColumn DataField="MailingName" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center">
 
                                                                <HeaderTemplate>
                                                                    <asp:Label ID="LabelName" runat="server" Text="Titolo"></asp:Label>
                                                                </HeaderTemplate>
 
                                                                <ItemTemplate>
                                                                <asp:Label ID="TextBox1" runat="server" Text ='<%# Eval("MailingName", "{0}")%>' Width="100%">
                                                                </asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle/>
                                                            </telerik:GridTemplateColumn>
 
 
                                                            <telerik:GridTemplateColumn DataField="Subject" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center">
 
                                                                <HeaderTemplate>
                                                                    <asp:Label ID="LabelOggetto" runat="server" Text="Oggetto"></asp:Label>
                                                                </HeaderTemplate>
 
                                                                <ItemTemplate>
                                                                <asp:Label ID="TextBox2" runat="server" Text ='<%# Eval("Subject", "{0}")%>' Width="100%">
                                                                </asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle />
                                                            </telerik:GridTemplateColumn>
 
                                                            <telerik:GridTemplateColumn ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center" Resizable ="False">                                           
                                                                <HeaderTemplate>
                                                                    <asp:Label ID="Data" runat="server" Text="Data"></asp:Label>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="DataLabel" runat="server" Text=""></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="110px"/>
                                                            </telerik:GridTemplateColumn>
 
                                                            <telerik:GridTemplateColumn Resizable="False" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="False" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                                    <asp:Label ID="DescrizioneStatoLabel" runat="server" Text="Stato"></asp:Label>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="DescrizioneStato" runat="server" Text=""></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="140px"/>
                                                            </telerik:GridTemplateColumn>
 
                                                            <telerik:GridBoundColumn DataField="IDMailingServer" HeaderText="IDMailingServer" Display="False" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center" Resizable="False">                                          
                                                                <HeaderStyle Width="35px" />
                                                            </telerik:GridBoundColumn>
 
                                                            <telerik:GridBoundColumn DataField="MailingState" HeaderText="MailingState" Display="False" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center" Resizable="False">                                           
                                                                <HeaderStyle Width="35px" />
                                                            </telerik:GridBoundColumn>
 
                                                            <telerik:GridBoundColumn DataField="ServerMailingState" HeaderText="ServerMailingState" Display="False" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center" Resizable="False">                                           
                                                                <HeaderStyle Width="35px" />
                                                            </telerik:GridBoundColumn>
 
                                                              <telerik:GridBoundColumn DataField="CategoryPath" HeaderText="Categoria" Display="false" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="True" Resizable="False">                                           
                                                                <HeaderStyle Width="150px" />
                                                            </telerik:GridBoundColumn>                                                          
 
                                                            <telerik:GridBoundColumn HeaderText="Email in errore" DataField="LabelEmailError" Display = "false" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="True" HeaderStyle-HorizontalAlign="Center" Resizable="False">                     
                                                                <HeaderStyle Width="35px" />
                                                            </telerik:GridBoundColumn>
 
                                                            <telerik:GridTemplateColumn ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="False" HeaderStyle-HorizontalAlign="Center" Resizable="True">
 
                                                                <HeaderTemplate>
                                                                    <asp:Label ID="LabelProgressHeader" runat="server" Text="Progressione"></asp:Label>
                                                                </HeaderTemplate>
 
                                                                <ItemTemplate>
                                                                     
                                                                    <div runat="server" id="progress_barValue">
                                                                    <asp:Label runat="server" style="display:block;" id="PValue" Text="In Connessione">
                                                                    </asp:Label>
                                                                    </div>
                                                                    <div runat="server" id="progress_bar" class="ui-progress-bar ui-container" style="display: none">                                                                       
                                                                        <div runat="server" id="PBar" class="ui-progress" style="width:0; ">                                                                           
                                                                        </div><!-- .ui-progress -->
 
                                                                    </div><!-- #progress_bar --> 
 
                                                                </ItemTemplate>                                                               
                                                                <HeaderStyle Width = "230px"/>
                                                            </telerik:GridTemplateColumn>                                                                                                                   
 
                                                        </Columns>
                                                                                                            
                                                    </MasterTableView>
                                                     
                                                     
                                                      <ClientSettings enablePostBackOnRowClick="False" Resizing-ResizeGridOnColumnResize="False" EnableRowHoverStyle="False" ClientEvents-OnRowSelected="RowSelected" Selecting-AllowRowSelect="False">
                                                        <ClientEvents OnRowMouseOver="OnRowMouseOver" />
                                                         
                                                        <Selecting AllowRowSelect="True" />
                                                    </ClientSettings>
                                                     
                                                </telerik:radgrid
                                                                                                      
                                    </td>
                                </tr>
 
                                <tr>
                                    <td>
                                        <asp:Label ID="lbl_msg" runat="server" Font-Bold="False" ForeColor="#993333"/>
                                    </td>
                                </tr>
                               
                                   
                              </table>
                             
                        
                             
                        </td>
                    </tr>
                     
               
                     
 
                   
                </table>
 
   <%-- <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="ButtonClick(); return false" />
            <div id="qui">
                Arriva...
            </div>--%>
 
    <!-- attenzione per funzionare l'ascx aperto nel tooltip deve avere un bind sul PRERENDER-->
    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" AnimationDuration="200" ShowDelay="100"
                                EnableShadow="true" HideDelay="1" Width="550px" Height="110px"
                                RelativeTo="Mouse" Animation="Slide" Position="BottomRight" OnAjaxUpdate="OnAjaxUpdate"
                                Skin="Telerik" />
 
</asp:PlaceHolder>
 
 
 
 
<telerik:RadWindow runat="server"
                    Width="300px"
                    Height="100px"
                    VisibleStatusbar="false"
                    ID="AddWindow"
                    Modal="true"
                    KeepInScreenBounds="true"
                    Behaviors="None"
                    Skin="Vista"
                    ReloadOnShow="True" VisibleTitlebar="False" DestroyOnClose="True">
</telerik:RadWindow>
 
<telerik:RadWindow runat="server"
                    Width="250"
                    Height="125"
                    VisibleStatusbar="false"
                    ID="PopWindow"
                    Modal="true"
                    KeepInScreenBounds="true"
                    OnClientClose="closeRadWindow"
                    Behaviors="Default"
                    Skin="Vista"
                    ReloadOnShow="True" VisibleTitlebar="False" DestroyOnClose="True" VisibleOnPageLoad="False" ShowContentDuringLoad="True">
                    <ContentTemplate>
                    <div style="vertical-align: middle">
    <table align="center">
     
    <tr>
    <td align="center">
    <asp:Image ID="ImageWait" runat="server" ImageAlign="Middle"
            ImageUrl="~/Admin/images/ajax-loader.gif" />
    </td>
    <td>
        <div id = "Div1" style="display: none" align="center">
        No Service connection
        </div>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="LabelConnecting" runat="server" Text="Connecting...."
            Font-Size="X-Large"></asp:Label>
    </td>
    <td align="center">
        <input id="Button2" type="button" value="Close"  onclick="Close()" style="display: none"/>
    </td>
    </tr>
 
    </table>
    </div>
    </ContentTemplate>
</telerik:RadWindow>

And the javascript I use to open and to change the radwindow content is:

var timeoutPopPeriod = 100000; //in milliseconds
function Popup() {
        var wnd = $find("<%=PopWindow.ClientID%>");
        wnd.show();
        setTimeout(function () { reset2() }, timeoutPopPeriod);
    };
 
function reset2() {
        var wnd = $find("<%=PopWindow.ClientID%>")
        var content = wnd.get_contentFrame();
        var image = content.$find("<%=ImageWait.ClientID %>");
        var label = content.$find("<%=LabelConnecting.ClientID %>");
         
        var labelconn = content.contentWindow.getElementById("Div1");
        var button1 = content.contentWindow.getElementById("Button1");
        image.style.display = "none";
        label.style.display = "none";
        labelconn.style.display = "block";
        button1.style.display = "block";
         
    }
Jean-Marc
Top achievements
Rank 1
 answered on 03 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?