Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
213 views

Hello,

I’ve gotten a “Telerik” license recently and I’ve been working the last months without problem. However, when the computer does not have internet connection, some errors occur suddenly.  Because of that, I have the following questions:

-          Does “Telerik” need internet connection to work correctly?

-          Am I doing something wrong?

I was wondering if I’ve done a bad installation of “Telerik” or, perhaps, something is missing.

To be more specific, I am using the following components:

  1. RadGrid - Telerik's ASP.NET Grid

Error:

Failed to load resource https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2012.2.607/Common/Navigation/OData/OData.js

Uncaught TypeError: Cannot set property 'scriptsFailed' of undefined Telerik.Web.UI.WebResource.axd:9

GET https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2012.2.607/Common/Navigation/OData/OData.js  Telerik.Web.UI.WebResource.axd:9

Uncaught TypeError: Cannot set property 'scriptsFailed' of undefined Telerik.Web.UI.WebResource.axd:9
 2. RadWindow - Telerik's ASP.NET Window

Error:

Failed to load resource http://aspnet-scripts.telerikstatic.com/ajaxz/2012.2.607/Common/Navigation/NavigationScripts.js

Uncaught ReferenceError: Telerik is not defined

 

I wish you could help with this problem and I would appreciate your help.

Thank you!!

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2012
1 answer
181 views
I have a column named OrgName.
I am trying to get the numbers or Rows that have unique ORGNAME.
if there are two rows which have orgNamr= "Mac" then it should count as 1. so only the UNique columns.
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2012
1 answer
70 views
hi,
I want to zoom out/ zoom in the image from server side. Any Server side method for zoom the image using telerik image editor.
Actually i zoom out/Zoom the image from client side.But i need to do the same thing from server side.
My code:
  function OnClientLoad(sender, args) {
            if (sender._imageKey) {
              var Width = sender.getEditableImage().get_width();
              var Height = sender.getEditableImage().get_height();
           
                if (!isNaN(Number(objhdnOriginalWidth)) && Number(objhdnOriginalWidth) != 0 && !isNaN(Number(objhdnOriginalHeight)) && Number(objhdnOriginalHeight) != 0) {
                    if (objhdnOriginalWidth > 1000 || objhdnOriginalHeight > 600) {
                        var widthPercentage = (1000 * 100) / objhdnOriginalWidth;
                        var heightPercentage = (600 * 100) / objhdnOriginalHeight;
                        widthPercentage = Math.floor(widthPercentage);
                        heightPercentage = Math.floor(heightPercentage);
                        if (heightPercentage > widthPercentage) {
                             sender.zoomImage(widthPercentage);
                        }
                        else {
                            sender.zoomImage(heightPercentage);
                        }
                    }
                }
    }

please help me.
Vessy
Telerik team
 answered on 09 Nov 2012
1 answer
148 views
RadComboBox is not rendering correctly in IE 8 Standards mode, though it looks fine in IE 7 Standards Mode and in IE 9.

When rendered, the combo box is followed by a second, visible "rcbFakeInput" input also created by Telerik that causes the combo box container height to stretch, allowing more of the combo box background image sprite to be visible than should be. The result is a combo box with an undesirable, extra row of strange graphics beneath it (see attached screenshot).

<telerik:RadComboBox ID="rcbExistingRoles" runat="server"> produces the HTML/CSS below. Note the second <input> tag with class="rcbFakeInput".

Using the IE developer tools, the problem goes away if I specify a class that sets the display of the "rcbFakeInput" to none. However, I'm not sure of the purpose of this fake input and would have to hide it in numerous places in the app we are developing.

  

<div class="RadComboBox RadComboBox_Vista" id="rcbExistingRoles" style="width: 160px; position: relative;" _events="[object Object]" control="[object Object]" value="">
<table class="rcbDisabled" style="width: 100%; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-collapse: collapse; table-layout: fixed;" summary="combobox">
<tbody>
<tr class="rcbReadOnly">
<td class="rcbInputCell rcbInputCellLeft" style="width: 100%; margin-top: -1px; margin-bottom: -1px;">
<input name="rcbExistingRoles" disabled="" class="rcbInput radPreventDecorate" id="rcbExistingRoles_Input" style="display: block;" type="text" readOnly="" _events="[object Object]" autocomplete="off" jQuery17206440974672821855="2"/>
<input tabIndex="-1" class="rcbFakeInput" style="left: 5px; top: 2px; width: 133px; height: 18px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; position: absolute; z-index: 1; background-color: transparent;"/>
Ivan Zhekov
Telerik team
 answered on 09 Nov 2012
1 answer
112 views
I used this code to 'zoom out'  the large image.It working only in ie8, firefox.
Image width and height is getting '0' in other browsers.
please tell me how to get the editable image height and width in chrome browser.

Script:
 function OnClientLoad(sender, args) {
            var editor = $find("<%= rieControl.ClientID %>");
            if (sender._imageKey) {
                var Width = sender.getEditableImage().get_width();
                var Height = sender.getEditableImage().get_height();
              
                if (!isNaN(Number(Width)) && Number(Width) != 0 && !isNaN(Number(Height)) && Number(Height) != 0) {
                    if (Width > 1000 || Height > 600) {
                        var widthPercentage = (1000 * 100) / Width  
;                        var heightPercentage = (600 * 100) / Height;
                         widthPercentage = Math.floor(widthPercentage);
                        heightPercentage = Math.floor(heightPercentage);
                        if (heightPercentage > widthPercentage) {
                            sender.zoomImage(widthPercentage);
                        }
                        else {
                            sender.zoomImage(heightPercentage);
                               }
                    }
                }
            }
        }
aspx:
 <telerik:RadImageEditor ID="rieControl" runat="server" OnClientLoad="OnClientLoad" >
                    </telerik:RadImageEditor>
Vessy
Telerik team
 answered on 09 Nov 2012
6 answers
183 views
how i can convert the higri shamsi(persian) to milady date in radscheduler control???
plz help me.pleas please .......
Ali
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
76 views
When the dll compiled for asp.Net 3.5 will stop to be released  ?
Thanks
Iana Tsolova
Telerik team
 answered on 09 Nov 2012
3 answers
100 views
Having issues only with chrome. It works in all other browsers. It apears that when I open a screen with RadFileExplorer and then hit the upload button the upload screen displays properly, but when I add files in chrome parts of the screen disappear. It seems like a zored issue. I have include 2 files one is the initial the other is after I drag 2 files at one time into the uploader. If I am to drag a 3rd file then the screen grows and shows the last file loaded but hides the previous 2. When I click on the header the entire screen shows.

This is the code for the filemange on my main screen
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Style="z-index: 7001">
<Windows>
<telerik:RadWindow ID="FileManager" runat="server" Title="" Height="600px" Width="800px"
ReloadOnShow="True" Modal="True" Skin="WebBlue" VisibleStatusbar="false" ShowContentDuringLoad="false" />
</Windows>
</telerik:RadWindowManager>

this is the markup of the filemanger screen
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManager.aspx.cs" Inherits="ComplianceClient.MarketingScreens.FileManager" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <style type="text/css">
         #<%=RadFileExplorer1.ClientID%>_uploadContainer
         {
             overflow-x: hidden !important;
         }
     </style>
</telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <asp:Literal ID="lblScript" runat="server"></asp:Literal>
        <asp:Label ID="lblErrorMessage" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
        <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Skin="WebBlue" Width="100%"  style="z-index:7001" >
           <Configuration EnableAsyncUpload="true" />
        </telerik:RadFileExplorer>
    </div>
    </form>
</body>
</html>

then on the load event of the screen I have
RadFileExplorer1.WindowManager.Style.Add("z-index", "100001");

Has anyone else seen this issue?  Any idea what needs to be altered?
Vessy
Telerik team
 answered on 09 Nov 2012
5 answers
328 views
Hello,
I have a problem on the edit form.
My rule is to perform calculations in the edit form with special use.
I have a radcombobox (Billing % or Amount) to select 2 status. The first status (Amount) set the field of the percentage in readonly in the form and editable the field "Amount Value to be invoiced". When I switch to set "Percentage", the field percentage change to be editable and set the field "Amount Value to be invoiced" to ReadOnly.
But I haven't solution to do this action in the edit form.
Can you help me? Do you have a exemple?

When the user input data in the field automatically there is complex calcul in code behind. Actualy I have GridNumericColumn linked to GridNumericColumnEditor with this code :
<telerik:GridNumericColumnEditor runat="server" ID="GridColumnEditor_Percentage">
    <NumericTextBox Culture="en-US" DisplayText="" LabelCssClass="" LabelWidth="64px"
        AutoPostBack="true" MinValue="0" OnTextChanged="RadNumericTextBoxGrid_TextChanged">
        <NumberFormat ZeroPattern="n" DecimalDigits="0" />
    </NumericTextBox>
</telerik:GridNumericColumnEditor>
It's the good solution to manage my GridNumericColumn to do my calcul? I can't use the GridCalculatedColumn because I have a lot of parameters.
Thanks you for your help.
Best Regards
Laurent
Laurent
Top achievements
Rank 2
 answered on 09 Nov 2012
2 answers
137 views
I have a data entry form with lots of textboxes and Radcombo boxes on it. The user changes the values for the textboxes and uses tab button or mouse to move to other controls, randomly. There is no 'Save' functionality on the page, so with each update, I send an ajax request to update the server and save the values. The problem is with each ajax call back, there is a slight refresh of the page, and the focus is lost. I know I can use FocusControl() function to set the focus, but, for example, I am using onblur event for textboxes, and by the time the event is raised, the focus is on some other control, which can be anywhere on the form, and I have no clue where to put the focus on. And even if I knew, imagine the user has already opened a combobox, and is half way scrolling down the items when the focus is lost, and he has to open it again. So it gets really bumpy.

Basically, I am looking for a way to send ajax calls back to server without interrupting the user at all, like a second thread. I have allocated a separate AjaxPanel to it without any controls in it, just to make the call, but it still interrupts the user.

Thanks for your help.
Safa
Top achievements
Rank 1
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?