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

I seem unable to upload any large-ish files (around 20mb up) in IE (any version) and Chrome. However, Firefox works fine.

Using the development tools in Internet Explorer, I have noticed that a 404 error occurs. I have run though the following steps:

http://www.telerik.com/help/aspnet-ajax/upload-uploading-large-files.html

Unfortunately,  This hasn't help.

We are currently running under IIS 7.5

Markup

<telerik:RadAsyncUpload ID="ruFiles" runat="server" Skin="" ControlObjectsVisibility="None"
                                DisablePlugins="true"
                                OnClientFileUploaded="doFileUpload"
                                OnClientFileSelected="showLoading"
                                OnFileUploaded="rauFiles_FileUploaded"
                                EnableFileInputSkinning="false"
                                MaxFileSize="214748364"            
                                OnClientValidationFailed="OnClientValidationFailed"
                                OnClientProgressUpdating="onClientFileUploading">
                                <Localization Select="" />
                             </telerik:RadAsyncUpload>

Web.Config
<requestFiltering>
        <!-- the posted content for normal pages should be less than 1 MB.
                     File uploads are handled by the location attribute. -->
        <requestLimits maxAllowedContentLength="10485760" />
      </requestFiltering>
 
<httpRuntime maxRequestLength="1073741824" requestValidationMode="2.0" />


Plamen
Telerik team
 answered on 15 May 2014
3 answers
158 views
Hi All,
                Script can be recorded for Telerik Web Application in QTP & Selenium tools? If not please suggest other tools other than Telerik product..
Raj
Top achievements
Rank 1
 answered on 15 May 2014
1 answer
123 views
I'm looking for an expand/collapse control to display different sections/Panels on the page.  These are static sections and would be hardcoded.  The data within each section will be dynamic but the sections themselves would be hardcoded.  None of section names exist in a database.  So I'm looking for a control that will let me manually define each section.  I would like to use CollapsiblePanel in ajaxToolkit but this is a multi-developer environment and none of the other developers have ajaxToolkit installed.  However, we do all have RadControls installed.  So a RadControls alternative to CollapsiblePanel would be preferable.  Is there such a thing and I just haven't found it yet?  I explored RadGrid but couldn't figure out how to just add my own static rows.  I have 10 pre-defined panels/rows and only one column so I feel like using RadGrid would be complete overkill but haven't found a RadControl that will doa basic CollapsiblePanel effect.

Example:
Section Title:  User Information
Panel:  Multi-line User's Information

Section Title:  User History
Panel:  Detail User History

Section Title:  User Assignments
Panel: Detailed User's Assignments

And so on, all collapsible so the visitor can collapse the sections and see more on the screen at a time.  

Any thoughts?
Eyup
Telerik team
 answered on 15 May 2014
6 answers
219 views
I have a asp.net page in which i have a panel. In this panel, i load controls (text box) dynamically. And under this panel I have a radeditor. When user change an textbox field, i change content of my radeditor like this :

function ChangeTextEditorFieldValue(sender, args) {
v
ar elem = sender.get_element();

 

var attributedElem = document.getElementById(elem.id + '_text');

 

var fieldName = attributedElem.getAttribute('fieldCode');

var oldValue = args.get_oldValue();
var newValue = args.get_newValue();

var editor = GetFormEditor();

if (!oldValue) {
  var newhtml = ReplaceAll(editor.get_html(true), "{" + fieldName + "}", "[" + newValue + "]");
  editor.set_html(newhtml);
...

When i do this, RadEditor got focus but I want to set focus to ELEM (textbox i've change) like this :

elem.focus();

but focus stay on radeditor. Why ??? I'm on IE9

Ianko
Telerik team
 answered on 15 May 2014
9 answers
109 views
The problem can be seen on the Telerik demo editor. I'm using safari on iOS 7.1. I'll attach screenshots to show the problem.

Steps to reproduce:

Tap in the editor, placing the cursor somewhere in the middle of the editable area. (screenshot 1)

Start hitting Return on the iOS keyboard until the cursor reaches the bottom of the editable area. (screenshot 2)

At this point, if you continue to hit Return, rather than staying at the bottom of the editable area and scrolling the editor content up, the cursor continues moving down past the bottom of the editor. In screenshot3 you can see the cursor well below the editor at the bottom of the screen.

Is there a workaround solution for this problem? Can we expect the problem to fixed in a future build?

Ianko
Telerik team
 answered on 15 May 2014
5 answers
742 views
I am adding a radio button in each row of my radgrid as follows on OnInit:
              string templateColumnName = "Select One";
           GridTemplateColumn templateColumn = new GridTemplateColumn();
           templateColumn.ItemTemplate = new RadioButtonTemplate(templateColumnName);
           templateColumn.HeaderText = templateColumnName;
           this._RadGrid1.MasterTableView.Columns.Add(templateColumn);


public class RadioButtonTemplate : ITemplate
{
    RadioButton radioButton;
    String columnName;
    public RadioButtonTemplate(String colName)
    {
        columnName = colName;
    }
 
    public void InstantiateIn(System.Web.UI.Control container)
    {
        radioButton = new RadioButton();
        radioButton.ID = columnName;       
        container.Controls.Add(radioButton);       
    }
}


How can I enable only single selection at a time and capture the row selected?
Princy
Top achievements
Rank 2
 answered on 15 May 2014
1 answer
88 views
I have a RadGrid with many columns and it generates a vertical scrollbar. The issue is, i want to increase the Thickness of it. How can I do that?
Viktor Tachev
Telerik team
 answered on 15 May 2014
3 answers
147 views
Hi
My first question is :
Does RadRibbonBar support rtl direction ? There is no help in documentation about righ-to-left support

My second question is :
It seems that by adding RadControls (like RadMenu or RadTreeView) to the Right-To-Left pages, they detect the rtl direction and there is no need to add "dir=rtl" attribute to the control instance . Am I right ?

My last question :
How can I do Localizaion for RadInputManager Contrl? I want to get ErrorMessage or EmptyMessage from Resources ?

Thank you very much for your feedback
Aneliya Petkova
Telerik team
 answered on 15 May 2014
1 answer
139 views
hi,

I'm using the radorgchart control to display the an organization hierarchy which displays fine. I'm not using the drill down functionality here but I'm following this example 
https://demos.telerik.com/aspnet-ajax/orgchart/examples/applicationscenarios/integrationwithradtooltip/defaultcs.aspx

I want to display tooltips with further details for each node in the RadOrgChart, the tooltips won't appear and the OnAjaxUpdate event doesn't fire. Please help.

(I have removed all functionality related to drilling down nodes.)

here is my code in the .aspx,

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BrandixReportingStructure.aspx.cs" Inherits="UserInterfaces_BrandixReportingStructure" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register Src="~/UserInterfaces/OrgChartEmployeeDetails.ascx" TagPrefix="uc" TagName="employeedetails" %>
<!DOCTYPE html>
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
            <telerik:RadOrgChart ID="RadOrgChart1" runat="server" Skin="Default" DataFieldID="AssociateId" DataFieldParentID="ReportsTo" DataTextField="AssociateName" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                    <asp:Panel ID="Panel1" runat="server">
                        <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("AssociateImage") %>'
                                                AutoAdjustImageControlSize="false" Height="50px" Width="50px" ToolTip='<%#Eval("AssociateName", "Photo of {0}") %>'
                                                AlternateText='<%#Eval("AssociateName", "Photo of {0}") %>'>
                        </telerik:RadBinaryImage>
                        <%#Eval("AssociateName") %>
                    </asp:Panel>
                </ItemTemplate>
            </telerik:RadOrgChart>
            <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Skin="Default" OnAjaxUpdate="OnAjaxUpdate"
                                       Position="BottomRight" OffsetX="16" OffsetY="16" EnableShadow="false" Width="400" Height="135" AutoCloseDelay="10000" EnableAJAX="true"/>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT AssociateId, AssociateName,AssociateImage, ReportsTo, ManagerName FROM OrgStructure"></asp:SqlDataSource>
        </form>
    </body>
</html>


my code in aspx.cs

using System;
using System.Linq;
using System.Web.UI;
using Telerik.Web.UI;
 
public partial class UserInterfaces_BrandixReportingStructure : System.Web.UI.Page
{
    public void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs e)
    {
        Control ctrl = this.Page.LoadControl("OrgChartEmployeeDetails.ascx");
        ctrl.ID = "UcEmployeeDetails1";
 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
        UserInterfaces_OrgChartEmployeeDetails details = (UserInterfaces_OrgChartEmployeeDetails)ctrl;
        details.UserName = e.Value;
 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(new LiteralControl("My dynamic tooltip"));
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
    }
       
}

my code in .ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OrgChartEmployeeDetails.ascx.cs" Inherits="UserInterfaces_OrgChartEmployeeDetails" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource_BrandContactDetails">
    <ItemTemplate>
        <div style="width:400px; float:left; font-size:12px; font-family:'Segoe UI'">
            <div style="width:50px;">
                 <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("BuyerImage") %>'
                                                AutoAdjustImageControlSize="false" Height="50px" Width="50px" ToolTip='<%#Eval("ContactPerson", "Photo of {0}") %>'
                                                AlternateText='<%#Eval("ContactPerson", "Photo of {0}") %>'></telerik:RadBinaryImage>
            </div>
            <div style="width:50px;">
                Brand Contact
            </div>
            <div style="width:50px;">
             <%# Eval("Brand")%> <%# Eval("ContactPerson")%> <br/> <%# Eval("Designation")%>
            </div>
            <div style="width:50px;">
                Relationship Level
            </div>
            <div style="width:50px;">
                <asp:Image ID="Image1" runat="server" />
            </div>
            <div style="width:50px;">
               Frequency
            </div>
            <div style="width:50px;">
                 <%# Eval("FrequencyString")%>
            </div>
            <div style="width:50px;">
                <%# Eval("RelationType")%>
            </div>
        </div>
    </ItemTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSource_BrandContactDetails" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT TOP (100) PERCENT V_UpcomingRelationDetails.RelationType, V_UpcomingRelationDetails.Brand, V_UpcomingRelationDetails.ContactPerson, V_UpcomingRelationDetails.Designation, V_UpcomingRelationDetails.FrequencyString, V_UpcomingRelationDetails.Level, BuyerDetail.BuyerImage FROM V_UpcomingRelationDetails INNER JOIN BuyerDetail ON V_UpcomingRelationDetails.Brand = BuyerDetail.Brand AND V_UpcomingRelationDetails.ContactPerson = BuyerDetail.[Contact Person] AND V_UpcomingRelationDetails.Designation = BuyerDetail.Designation WHERE (V_UpcomingRelationDetails.TeamMemeber LIKE '%' + @user + '%') ORDER BY V_UpcomingRelationDetails.Brand, V_UpcomingRelationDetails.ContactPerson">
    <SelectParameters>
        <asp:Parameter Name="user" />
    </SelectParameters>
</asp:SqlDataSource>


my code in ascx.cs
using System;
using System.Linq;
 
public partial class UserInterfaces_OrgChartEmployeeDetails : System.Web.UI.UserControl
{
    public string UserName { get; set; }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        this.SqlDataSource_BrandContactDetails.SelectParameters[0].DefaultValue = this.UserName;
    }
}



Plamen
Telerik team
 answered on 15 May 2014
6 answers
456 views
how can i get the value of GridDropDownColumn in codebehind?


GridEditFormInsertItem dataInsertItem = e.Item as GridEditFormInsertItem;

DropDownList ddlType = dataInsertItem["Type"].Controls[0] as DropDownList;

i used this code in the former radgrid 2.0, but it does not work in th e Q1 grid (formerly prometheus)

Angel Petrov
Telerik team
 answered on 15 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?