Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
335 views

Guys,

I have 2 radwindows that are controlled buy WindowManager. Both of them host the same user control. In the first scenario control will generate some HTML and assigned it to a label.text. In a second scenario I will use Response.BinaryWrite to write pdf document to a response stream. I use DestroyOnClose="true” to make sure I have a clean load every time. So far so good, the only one thing that I can not figure out is how to do I show “Loading” image. I cannot do “ShowContentDuringLoad="false"” because the content for a window that is writing to response will never come up. This is also in your documentation (Note: If you intend to show a PDF file in RadWindow instead of a standard page, make sure that ShowContentDuringLoad is set to true. Otherwise if the loaded content is not a page, window.onload will not be fired and RadWindow will not show the content.)

So what can I do?  I really need to make this work because it might take up to 10 seconds while those windows are fully loaded.

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"   
Skin="Web20"   
VisibleStatusbar="false" IconUrl=" " Height="860px" Width="750px" Modal="true" Behaviors="Close,Move,Resize" 
DestroyOnClose="true"   > 
    <Windows> 
        <telerik:RadWindow ID="radPreview" runat="server" Title="Preview" ></telerik:RadWindow> 
        <telerik:RadWindow ID="radPreviewPdf" runat="server" Title="PDF Preview"></telerik:RadWindow> 
 
    </Windows> 
</telerik:RadWindowManager> 

and I open an window with
        function launchPreview(type) {  
 
            url = "blablbla.aspx?bla=sds";  
            if (type == 'pdf') {  
                url = url + "&show=pdf" 
                var oWnd = window.radopen(url, "radPreviewPdf");  
                oWnd.set_title("PDF Preview");  
                oWnd.set_showContentDuringLoad(true);  
                return;  
            } else {              
                var oWnd = window.radopen(url, "radPreview");  
                oWnd.set_title("HTML Preview");                                   
            }  
        } 
SlimSjakie
Top achievements
Rank 2
 answered on 28 Jan 2011
1 answer
57 views
Hi,

On my localhost I am writing

    Dim newsImagesFolderPath As String = Server.MapPath("~/temp/NewsImages/" & Domain)
    Dim newsImagesFolderVirtualPath As String = "~/temp/NewsImages/" & Domain

    If Not FolderExists(newsImagesFolderPath) Then
      FolderCreate(newsImagesFolderPath)
    End If
    uxNewsEditor.ImageManager.ViewPaths = New String() {newsImagesFolderVirtualPath}
    'uxNewsEditor.ImageManager.UploadPaths = New String() {newsImagesFolderVirtualPath}
    'uxNewsEditor.ImageManager.DeletePaths = New String() {newsImagesFolderVirtualPath}


this is working but if I am specifying UploadPaths or Deletepaths, it stops working. Any idea ?

Furqan
Rumen
Telerik team
 answered on 28 Jan 2011
2 answers
378 views
Hi
I have been working with Telerik for awhile now in my Web Projects and have had no issues. Recently, we have been attempting to take use of the GAC in our Servers to stop duplicating deployment of our dll files. ie(Telerik.Web.UI.dll) I opened (Control Panel -> Administrative Tools -> Microsoft .NET 2.0 Configuration) Then I expanded MyComputer from this tool and selected Assembly Cache. I right clicked and selected "Add". I then browsed to [ C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q3 2010\Bin35\Telerik.Web.UI.dll ], which is the dll I am experimenting with using in the GAC system. It then added it to the Assembly Cache List as Telerik.Web.Ui   with  Version 2010.3.1317.35 and a public key. It appears to be all in there properly. I did the same with the Telerik.Web.Design.dll as well.

I have done this on both the Deployed Dev Server and my local machine for development.

Next I removed my Reference to the Telerik stuff in my bin folder and have tried pointing it to the Visual Studios10 folder where it is stored in public assemblies with the Correct Version. I have also tried pointing it to the Telerik folder as listed above and finally I have tried pointing it through to the Microsoft_MSIL\Telerik referencing the GAC as well. Regardless of where I point it, if I turn off make local copy and remove it from the dll from my bin folder, nothing will build anymore. I keep getting Telerik.Web.UI reference is incorrect or not found type of errors. I have tried adding an

<compilation debug="true" defaultLanguage="vb" strict="false" explicit="true">
      <assemblies>
            <add assembly="Telerik.Web.UI, Version=2010.3.1317.35, Culture=netrual, PublicKeyToken=121gae78165ba3d4" />

in the web.config file.

I also have the
  ( code snippet
<controls>
        <!-- Required for AJAX -->
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>

<httpHandlers>
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <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" />
    </httpHandlers>
    <!-- Required for AJAX -->
    <httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
    </httpModules>
  </system.web>
  <!-- Required for AJAX -->
  <!-- Required for AJAX -->
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    --><system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <remove name="RadUploadModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0" />
    </modules>
    <handlers>
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode, runtimeVersionv2.0" />
      <!--<add name="Telerik.Web.UI.WebResource_axd"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />-->
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
)



Then at the top of any page using Telerik stuff has the reference tag:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


Sorry to overload with information, but I can't figure out what I'm doing wrong. Why is it requiring me to have the 2010.3.1317.35 version of Telerik.Web.UI in my bin folder when it is already in the GAC on my local machine and the Server that it is going to deploy to. Not to mention I reference it from my local machine without local copy so it shouldn't matter if it is in GAC on local machine anyways. However, that is where the problem starts is the second I remove it from the bin folder on my local machine OR the server where it deploys.

HELP PLEASE!


Thanks in advance for taking the time to help me solve this issue.

Sam

Sam
Top achievements
Rank 1
 answered on 28 Jan 2011
1 answer
80 views
Hello,

I just wanted to know whether its possible to refer an Image control present inside the AppointmentTemplate from the AppointmentDataBound event?? say  FindControl or something.

I need to show and hide icons for appointments based on some conditions.

Any assistance will be highly appreciated.
Princy
Top achievements
Rank 2
 answered on 28 Jan 2011
3 answers
269 views
HI,

I am using RadTabstrip in my application,inside RadTabstrip i am having tabs,my requirement is to have space between the tabs with round corners and i need to change the color of the selected  tab etc...Please find the attached image for reference
Yana
Telerik team
 answered on 28 Jan 2011
1 answer
122 views
Hello,

What are all of the acceptable date formats by the control?  Is it all month, day, and year type formats?  So far, we've figured this all works:

mm.dd.yyyy
mm-dd-yyyy
month day yyyy
month day yyyy
month day, yyyy
mmddyyyy
mm,dd,yyyy

Is there any else?  Does it support entering the day of the year with the year, such as 176/2010 or something like that?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 28 Jan 2011
1 answer
1.2K+ views
Is there any way we can avoid the grid from showing horizontal scroll but only vertical scroll the code i am using is 

Thanks
Roshin
 
<telerik:RadGrid ID="gvDetail" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    GridLines="None" OnItemCommand="gvDetail_ItemCommand" OnNeedDataSource="gvDetail_NeedDataSource"
                    Width="100%">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" />
                    </ClientSettings>
                    <MasterTableView AutoGenerateColumns="false" DataKeyNames="SNo,RegRegion,CCCName,Address,ContactDetails,Benefits">
                        <NoRecordsTemplate>
                            No data available</NoRecordsTemplate>
                        <Columns>
                            <telerik:GridBoundColumn DataField="SNo" HeaderText="Serial Number" />
                            <telerik:GridBoundColumn DataField="RegRegion" HeaderText="Location" />
                            <telerik:GridBoundColumn DataField="CCCName" HeaderText="Child Care Centre Name" />
                            <telerik:GridBoundColumn DataField="Address" HeaderText="Address" />
                            <telerik:GridBoundColumn DataField="ContactDetails" HeaderText="URL & Contact Details" />
                            <telerik:GridBoundColumn DataField="Benefits" HeaderText="Benefits" />
                            <telerik:GridTemplateColumn HeaderText="Edit" UniqueName="TemplateColumn">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="ViewSelected"
                                        Text="Edit"></asp:LinkButton>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="TemplateColumnDel">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandName="Delete"
                                        OnClientClick="return confirm('Are you certain you want to delete?');" Text="Delete">
                                    </asp:LinkButton>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>




Shinu
Top achievements
Rank 2
 answered on 28 Jan 2011
1 answer
54 views
Hello there

I'm working on a RadEditor stylesheet at the moment, but unsurprisingly, I'm having trouble getting together an appearance that looks acceptable in both Internet Explorer and other browsers. Normally, I would use conditional [if IE] statements in the <head> section of a page. However, I don't think this approach is valid for styling the content of the iframe that the RadEditor uses - am I right in thinking that the markup for the control would not allow any such conditional loading of stylesheets through its <CssFiles> node. If not, the obvious answer is to apply CSS  hacks within a single stylesheet, but I try and avoid this whereever possible as usually it just stores up trouble for later, e.g., IE8 parses CSS hacks differently to other versions.
I'm wondering if anybody has suggestions about the best way of approaching this issue for RadEditor styling.

Thanks very much

Regards
  
Rumen
Telerik team
 answered on 28 Jan 2011
1 answer
71 views
Hi,
I found a forgotten localization in the file "RadEditor.Dialogs.fr-FR.resx" in the RadControls for ASP.NET AJAX Q2 2010.
At line [ImageEditor_Save] the value was "Save" instead of "Enregistrer".

That's all, great work anyway.
Rumen
Telerik team
 answered on 28 Jan 2011
10 answers
1.2K+ views
Before upgrading to ASP.NET AJAX  from ASP.NET the rad grid grouping worked. Since upgrading however, as soon as a drag and drop grouping is preformed we are greeted with this error:

Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridTableView'.

I created a test page where I bound test data to a newly add rad grid and enabled grouping and it still blows up. 

I tried looking through the examples, but they either leave much to be desired or I followed them correctly and something is still not quiet right. Any ideas?

Thenmozhi
Top achievements
Rank 1
 answered on 28 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?