Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 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
116 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
188 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
81 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
115 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
338 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
146 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
3 answers
61 views
recently I install the latest telerik control.
After that I got the problem with the radgrid paging alignment.
Please see the attached file to understand the problem.

telerik Version : RadControls for ASP.NET AJAX Q3 2012
Browser : IE7
VS:2010
Framework : 4.0



Pavlina
Telerik team
 answered on 09 Nov 2012
1 answer
154 views
Hi all,

Is that possible to import data Excel to Rad Grid.. if yes. please give the instructions .

Regards,

Prassin
wnl
Top achievements
Rank 1
 answered on 09 Nov 2012
4 answers
129 views
Hi,

im using a RadSplitter. One of its pane loads another page (it is that page that contains the RadNotification). That page use a wrapper div in order to style its borders. When the Notification appears (and if I use any animation other than "none"), the Notification is quickly moved to another position (close to where it originally showed up) after an short moment of time. The wrapper div in question is using padding, margin and borders in its CSS. If I clear out the values for those properties, the Notification appears without being "moved". Looks like the CSS is applied after the Notification is generated and shown. This behavior seems not to occur if Notification conjtrol is moved outside the RadSplitter. Is it a normal behavior of the control? Any workaround?

TIA
Martin Roussel
Top achievements
Rank 1
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?