Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
284 views
I am trying to determine why a Rad Rotator on one of our pages has stopped displaying it's items. When the page loads, it should display an image but no longer does. I can see in the source that the images are there, but hidden. I noticed that our javascript that tries to change to the next item is getting null for the rotator:

function showNextItem(dir) {
 
        var oRotator = $find('<%= RadRotator1.ClientID %>');
 
        if (dir == 0) {
            oRotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right);
        }
        else {
            oRotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left);
        }
 
 
    }

for the rotator declared:
<tr:RadRotator ID="RadRotator1" runat="server" ...>

In the script above $find returns null. I'm not sure what's going on.

What is really confusing is this page belongs to an internal SharePoint extranet site. This site is extended to a public internet site. On the internal site, the rotator works. It's only not working on the external site. If you're not familiar with this model, the sites have their own configuration and IIS application, but both serve the exact same page. So I don't believe it's anything to do with the script above or the declaration of the rotator control.
Jesse
Top achievements
Rank 1
Veteran
 answered on 26 Nov 2013
9 answers
514 views
Hi,

What is the deal with html encoding in RadDropDownList?
Can't make it work correctly...

I suppose that we should html encode the text property of the items?
But even if doing so, there will problems when selecting items...

See the following sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="dropdownlist.aspx.vb" Inherits="TestaTredjepartWeb.dropdownlist" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <telerik:RadDropDownList ID="ddl" runat="server">
            </telerik:RadDropDownList>
        </div>
    </form>
</body>
</html>

Code behind:
Public Class dropdownlist
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ddl.Items.Add(New Telerik.Web.UI.DropDownListItem(HttpUtility.HtmlEncode("<script>alert('hello1');</script>"), "1"))
        ddl.Items.Add(New Telerik.Web.UI.DropDownListItem(HttpUtility.HtmlEncode("<script>alert('hello2');</script>"), "2"))
    End Sub
 
End Class

When selecting item 2 in the dropdown the alert will display (hello2) and the text in the dropdown will be empty.
Is there any workaround for this?

Regards
Andreas
Dimitar Terziev
Telerik team
 answered on 26 Nov 2013
4 answers
304 views
I use a button click event to show RadNotification and start the auto updates. On hide event I stop the auto updates.
I have the default text configured, and I also reset it again to the same value in button click event, before starting auto updates and calling show().
The interval is 3 seconds, so I expect the text "Retreiving PIN number" to be displayed until the first auto update occurs, yet that does not work always. The firs time I load the page and the notification shows up, it is always empty. After that, only on occasion does the default text show up. Most of the times it shows the text from the last auto update. What may be the cause.

<telerik:RadButton ID="ButtonPairAndroid" runat="server"
                Text="Pair Android Device" Width="230px" OnClick="ButtonPairAndroid_Click" OnClientClicking="CallClientShow" CausesValidation="False" />
            <telerik:RadNotification ID="RadNotification1" runat="server" Height="110px" Position="Center" Text="Retreiving PIN number" Title="Device Pairing" Width="350px" AutoCloseDelay="0" OnCallbackUpdate="OnCallbackUpdate" UpdateInterval="0" LoadContentOn="TimeInterval" OnClientHidden="OnClientHidden">
            </telerik:RadNotification>
            <telerik:RadScriptBlock ID="block" runat="server">
                <script type="text/javascript">
                    function CallClientShow(sender, args) {
                        var notification = $find("<%=RadNotification1.ClientID %>");
                        notification.set_updateInterval(3000);
                        notification.set_text("Retreiving PIN number");
                        notification.show();
                        args.set_cancel(false);
  
                    }
 
                    function OnClientHidden(sender, eventArgs) {
                        var notification = $find("<%=RadNotification1.ClientID %>");
                        notification.set_updateInterval(0);
                    }
                </script>
            </telerik:RadScriptBlock>
Alex
Top achievements
Rank 1
 answered on 26 Nov 2013
1 answer
101 views
Hi Team, 
We are using RadAsyncUpload in one of our page. For that we use ProgressArea also. My problem is, I am using other FileUpload(Normal aspx control) in my page. If I am uploading some stuff's through that control(by aspx FileUpload) progress area shows for that also. Can you suggest me a solution so that Progress area is displayed only when I upload through async Upload. 

I have tried the through the javascript
 function OnClientFileUploading2(sender, args) {
                var pa2 = $find("RadProgressArea2");
                pa2.set_visible(true);
}

Since I use many FileUpload controls , I don't want all the FileUpload's to set that as invisible. 
Hristo Valyavicharski
Telerik team
 answered on 26 Nov 2013
1 answer
126 views
Hi,
how to hide the filter icon only of a column in radgrid.
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2013
3 answers
117 views
Recently I bought a new laptop. I am migrating my tools from my old laptop to the new one. I have 2011 Q3 version of the Rad Controls. My new laptop has Windows 8 and I am trying out Visual Studio 13 Preview version. My code compiles without any error but when I run my web site Rad Controls do not render properly.

I researched and found out two possible causes - 1) Enable JavaScript in browsers and 2) Register Telerik.Web.UI.dll in GAC. I tried both workarounds but still my pages are not rendering telerik controls correctly.

Is there anything else I can check?

Thanks in advance for your help!


Vessy
Telerik team
 answered on 26 Nov 2013
3 answers
146 views

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/incorrectly-rendered-webpage-when-using-internet-explorer-11.aspx

In the above post the Telerik Admin suggested a browser file fix which worked very well for my Windows 7, IE 11 machine.

However it did not fix Windows 8.1 IE11.  The problem exists until you switch to compatibility mode.

Is there something else we can do to the browser file until we resolve the impact of upgrading to .Net 4.5?

thanks,

Tim Kelley

Boyan Dimitrov
Telerik team
 answered on 26 Nov 2013
4 answers
213 views
I have an excelworkbook the user has saved to the server.
I have a radgrid that is being databound to this excel workbook.
This workbook can have varying number of columns so I cannot hardcode the columns

Each column will have various datatypes in them.. For example
Column 1 will be mixed alphanumeric values
Column 2 will be dates
Column 3 will be mixed alphanumerics

When I bind the excelworkbook to the radgrid all of the alpha numeric columns (Letters and numbers) do not show up.. 

ANy idea on how to fix this issue?

I am using the following code plex project to translate the excel workbook into a dataset with tables for each tab in the excel workbook:
http://exceldatareader.codeplex.com/

The code that actual binds the radgrid:
protected DataSet Data
       {
           get
           {
               if (Application["data"] == null)
               {
                   return null;
               }
               return Application["data"] as DataSet;
           }
       }


private void ImportFromExcel()
     {
         // Bind Data and populate Dropdown
 
         string filePath = String.Format("~/ImportProduction/{0}", FileName);
         FileStream stream = File.Open(Server.MapPath(filePath), FileMode.Open, FileAccess.Read);
         IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream);
 
         excelReader.IsFirstRowAsColumnNames = firstRowIsHeaderRowCheckBox.Checked;
 
         Application["data"] = excelReader.AsDataSet();
         excelReader.Close();
 
 
 
         foreach (DataTable t in Data.Tables)
         {
             var name = t.TableName;
             var index = Data.Tables.IndexOf(t);
             RadComboBoxItem item = new RadComboBoxItem(name, index.ToString());
             RadComboBox1.Items.Add(item);
         }
         RadGridImport.Rebind();
         
     }

protected void RadGridImport_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
      {
          if (Data != null)
          {
              var selectedWorkSheet = RadComboBox1.SelectedIndex;
              if (selectedWorkSheet != -1) (sender as RadGrid).DataSource = Data.Tables[selectedWorkSheet]; ValidateButton.Enabled = true;
          }
      }

Kunal
Top achievements
Rank 1
 answered on 26 Nov 2013
1 answer
223 views
Hi.
I have an autogenerated radgrid i want to access the values in it from code behind. How to access it when i dont know its uniquename.
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2013
5 answers
102 views

I am having this issue since very long that Filter Icon of GridNumericColumn is not displayed Properly.
See Attached Image. It happens only in IE7. Above IE7 it works perfect. And also it happens with GridNumericColumn
Column only. It works with BoundColumn.
I am using following code and css as it suugests in some of telerik forum but it doesn't work.

 

<telerik:GridNumericColumn DataField="abc" HeaderText="abc" UniqueName="abc"

FilterControlWidth="80%" SortExpression="abc" FilterListOptions="VaryByDataType"

Resizable="true" AutoPostBackOnFilter="false" ShowSortIcon="true" DataType="System.Int32">

<ItemStyle Width="7%" />

<HeaderStyle Width="7%" />

</telerik:GridNumericColumn>

<!--[if IE 7]>

<style type="text/css">

.riTextBox,.riFocused,.riEnabled,.riHover

{

height:15px !important;

}

#ctl00_ContentPlaceHolder_grdAppointmentSearch_ctl00_ctl02_ctl03_RNTBF_abc

{

width:50px !important;

max-width:50px !important;

}

</style>

<![endif]-->

Deyan Enchev
Telerik team
 answered on 26 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?