Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
338 views
Hello,
         I am working on a project made in vs2010,As per my requirement I have a Iframe in radeditor  and want to add a custom context menu on this Iframe. I have tried a lot but failed.Please help me or give me any idea.
I am using this code. 

 <telerik:RadEditor ID="RadEditor1" runat="server">
            <Content>
             <iframe style="position:absolute;width:500px;height:500px;" src="http://www.bing.com" originalPath ="http://www.bing.com" originalAttribute=src> </iframe>
            </Content>
        </telerik:RadEditor>


Thank You.
Marin Bratanov
Telerik team
 answered on 27 Aug 2013
4 answers
307 views
Going through the Rad Controls Courseware and I am unable to drag and drop any Telerik controls into design or source mode on a web page.  It does nothing, I have updated the controls using Visual Studio 12.  I can manually copy and paste the code and it works but drag and drop does not.  Also unable to add child nodes to a RadToolBar I can add child nodes for a RadMneu but even those do not show when running the website just the parent nodes no drop downs. Telerik AJAX Manager v2013 1.220.40  Any idea why I can not drag and drop Telerik Controls?
Dyanko
Telerik team
 answered on 27 Aug 2013
1 answer
139 views
Hi,

I have setup some very simple code to show my issue.  I have my Test.aspx page, which has a RadAjaxManager, along with a tab strip.  Each tab contains a user control.  The user control is very simple, a textbox and a button.  When clicked, the button just hits its click event on the server and for demonstration will wait 2 seconds.  The ajax manager has the event of the btnTest Click and the updated controls are both the panels wrapping each user control.  The issue is, the loading panel only shows when I am on the first tab and click the button.  It will not show on the second tab when I click the button. Any help is appreciated.  Below is the code:

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
 
<%@ Register Src="~/Controls/Test.ascx" TagPrefix="uc" TagName="test" %>
 
<html>
<head>
   
</head>
<body>
    <form runat="server">
         <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
    <telerik:RadAjaxManager ID="radAjax" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnTest" EventName="Click">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTest1" LoadingPanelID="RadLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="pnlTest2" LoadingPanelID="RadLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadLoadingPanel" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadTabStrip ID="monetizeTabs" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="0" CssClass="MainTabStrip" OnTabClick="RadTabStrip1_TabClick">
        <Tabs>
            <telerik:RadTab Text="Test 1" Font-Size="12pt">
            </telerik:RadTab>
            <telerik:RadTab Text="Test 2" Font-Size="12pt">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView">
        <telerik:RadPageView ID="RadPageView1" runat="server" CssClass="tabContent">
            <asp:Panel ID="pnlTest1" runat="server">
                <uc:test ID="test1" runat="server" ValidationGroup="Hi" />
 
            </asp:Panel>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server" CssClass="tabContent">
            <asp:Panel ID="pnlTest2" runat="server">
                <uc:test ID="test2" runat="server" ValidationGroup="Bye" />
            </asp:Panel>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
            </form>
</body>
 
</html>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        
    }
}

Here is the user control code:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Test.ascx.cs" Inherits="controls_Test" %>
<div style="padding:10px;border:solid 1px black;margin:10px;">
<asp:TextBox ID="txtName" runat="server" ></asp:TextBox>  
<asp:Button ID="btnTest" runat="server" OnClick="btnTest_click" Text="Test it"  /></div>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class controls_Test : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void btnTest_click(object sender, EventArgs e)
    {
        Thread.Sleep(2000);
        txtName.Text = "Back from Server";
    }
}



Shinu
Top achievements
Rank 2
 answered on 27 Aug 2013
9 answers
116 views
We have a device that can output text into a focused input field.   The device is configured for "keyboard" mode.  We are using an ASP:Textbox field.   When the ASP:Textbox is inside a RadWindow, the speed the text shows up is slower than on a non-RadWindow page.

All pages are using radajaxpanel.  We do not have any onkey.. events in the way.  

Does Telerik add any events related to onkeydown, onkeyup, onkeypress, onkey{Other}, when a radwindow is in place?

Only happens in IE, with Chrome the text shows up very fast.
Marin Bratanov
Telerik team
 answered on 27 Aug 2013
1 answer
703 views
Hi,

I am using the code
 window.radopen(encodeURI('<%=ResolveUrl("~/")%>UI/Query.aspx?txtToFill=' + hdnSearchText + "&Name=" + document.getElementById(hdnName1).value + "&btnUploadFile=" + btnQuery), 'NavigationWindow');

to open a window as a rad window popup. Inside this window we have added a custom close button to close the window.
            function getRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }
            function closeWindow() {
                getRadWindow().close();
            }

But I am getting an error :

Timestamp: 8/26/2013 5:48:47 PM
Error: TypeError: k.replace is not a function
Source File: http://localhost:1981/Telerik.Web.UI.WebResource.axd?

_TSM_HiddenField_=ctl00_radScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a0507d587-20ad-4e22-b866-76bd3eaee2df%3a16e4e7cd%3af7645509%3a24ee1bba%3a92fe8ea0%3af46195d3%3afa31b949%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4%3a11a04f7e%3a1e771326%3aa7e79140%3a2003d0b8%3aaa288e2d%3ae524c98b%3a596d7b53%3bAjaxControlToolkit%2c+Version%3d1.0.20229.18969%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3acf3d7884-84c8-47a3-b2bf-68e7ae538755%3ab14bb7d5%3a13f47f54%3a1d056c78%3adc2d6e36%3aa3e10fa2%3a701e375f%3a3c55b13e%3ade51bc8f%3aa4313c7a
Line: 5545



I don't know what is wrong in this case.
Thanks in Advance.

Thanks,
Bylar
Marin Bratanov
Telerik team
 answered on 27 Aug 2013
3 answers
219 views

Hi,

  Please let me know how to open insert item template when grid is in batch edit mode from code behind.
Princy
Top achievements
Rank 2
 answered on 27 Aug 2013
4 answers
242 views
I have a RadGrid with "add new record" features. The table fits perfectly in the window but when I click on "Add new record", it opens up and became too big for the window. How can I keep the table within the same dimensions after clicking on "add new record"?
Princy
Top achievements
Rank 2
 answered on 27 Aug 2013
2 answers
203 views
Hi,
I want use the RadRotator for show the news of a site.

Populate Control
DataTable dt = new LuposArt.AssistenzaRullo.News().GetCollection();
RadRotator1.DataSource = dt;
RadRotator1.DataBind();


ASPX Control
<telerik:RadRotator ID="RadRotator1" runat="server" RotatorType="AutomaticAdvance" ScrollDirection="Up" ScrollDuration="20000" FrameDuration="1000" >
<ItemTemplate>
<b><%# DataBinder.Eval(Container.DataItem, "NewsDate")%> - <%# DataBinder.Eval(Container.DataItem, "NewsTitle")%></b><br />
<div><%# DataBinder.Eval(Container.DataItem, "NewsNote")%>
</ItemTemplate>
</telerik:RadRotator>


If I set the property ScrollDirect="Up" the control show all the news of colelction (3 news)
If I cut the property ScrollDirect the control work good (scrool right==>left) but is not that I want.
I want the vertical scroll...

I don't understand the problem :-(

lupotana
Top achievements
Rank 1
 answered on 27 Aug 2013
2 answers
551 views
I have a web form that keeps throwing this error:

SCRIPT5007: Object expected
Telerik.Web.UI.WebResource.axd, line 6 character 51366

It shows MicrosoftAjax.js, obfuscated.
At the indicated location we see:

return function(c,d){for(var b=0,e=a.length;b<e;b++)a[b](c,d)}},

The error is on the bolded part. The element a[0] is null.

I know this isn't a Telerik issue but I'm not sure if we can manipulate the environment to get Telerik.Web.UI.WebResource.axd to load another MicrosoftAjax.js from CDN or elsewhere.

How can we diagnose this?

Only IE seems to choke on the issue. FireFox might be choking too but silently. My code is not behaving well and I'm not sure if this error has anything to do with it.

Thanks.
TonyG
Top achievements
Rank 1
 answered on 27 Aug 2013
4 answers
452 views
Hi All,
  I have Three level Hierarchy RadGrid.
  I have to display the grid  all records(master or details table) expended mode.
  And its working fine by enabling property of master & detailTables HierarchyDefaultExpanded="true"
  But problem is i want to hide the "Header of detailsTables" if there is no child records in any level.

Any Suggestion?

Thanks,
Surander
Waseem
Top achievements
Rank 1
 answered on 26 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?