Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
1.2K+ views
I'm modifying one of our older ASP.NET WebForms apps that I've used Telerik AJAX controls in. While running the app in the VS 2010 debugger, I've started to get this error message:

"JavaScript runtime error: Unable to get property 'documentElement' of undefined or null reference"

It stops in Telerik.Web.UI.WebResource_4.axd code when I click on the RadDatePicker control. I've not modified that page in a very long time. If anything I've upgraded the Telerik ASP.NET AJAX controls, or at least I've downloaded them and installed them on my PC. If I run VS 2010 without the debugger and then click on the RadDatePicker control, I'll get a popup dialog box asking me if I want to use IE10's built in JavaScript debugger, because the same line is hit on. That line is:

var E = a.document.documentElement;


Which is in the getLocation: function (a)
(at least that's where I found it. That line of code maybe elsewhere.)

Bottom line: What's wrong and what can I do about it?

raghwendra
Top achievements
Rank 1
 answered on 06 Feb 2016
3 answers
202 views

Hi,

When the colorpicker is located at the bottom of a page, it always cuts off the tabs at the bottom.

Se attached image from your demo!

http://demos.telerik.com/aspnet-ajax/colorpicker/examples/overview/defaultcs.aspx

Set "With a picker button" in the demo!

Regard
Andreas

Slav
Telerik team
 answered on 05 Feb 2016
1 answer
44 views
Hello Telerik, Im trying to solve a problem that i faced with radwindow, Ihave one Parent Page, on some event it opens a radwindow A(For Example), on A, there's another event that opens another radwindow (B), when i shoot the event on (A) i got the (B) rad window within A, how can i show (B) over (A) borders
Marin Bratanov
Telerik team
 answered on 05 Feb 2016
2 answers
163 views

Hi,

I am trying to load a radcombobox filter as below,  the sqldatasource where conditions are coming from session values - session("ssnUSER_NAME") and session("ssnUSER_ID"). //VB.net 4.5/2015Q2/Oracle

The radcombo filter is not getting populated.

What am I missing?

Also a secondary question, I want to display user name but the filter should pickup user_id="some_id". Is it possible?

Any help will be greatly apprerciated. Thanks.

<telerik:GridBoundColumn DataField="USER_NAME" HeaderText="CREATED BY"

SortExpression="USER_NAME" UniqueName="USER_NAME" ReadOnly="true">

<FilterTemplate>

<telerik:RadComboBox RenderMode="Lightweight" ID="rcbUserName" DataSourceID="SqlDataSource5" DataTextField="USER_NAME"

DataValueField="USER_NAME" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("USER_NAME").CurrentFilterValue %>'

runat="server" OnClientSelectedIndexChanged="UserNameIndexChanged">

<Items>

<telerik:RadComboBoxItem Text="All" />

</Items>

</telerik:RadComboBox>

<telerik:RadScriptBlock ID="RadScriptBlock4" runat="server">

<script type="text/javascript">

function UserNameIndexChanged(sender, args) {

var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");

tableView.filter("USER_NAME", args.get_item().get_value(), "EqualTo");

 

}

</script>

</telerik:RadScriptBlock>

</FilterTemplate>

</telerik:GridBoundColumn>

 

 

<asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServicesOracle %>"

ProviderName="<%$ ConnectionStrings:ApplicationServicesOracle.ProviderName %>"

SelectCommand="select distinct b.USER_NAME, b.USER_ID from tblPTS a join tblUSER_DETAILS b on a.USER_ID = b.USER_ID where (b.TEAMLEAD = :ssnUSER_NAME or a.USER_ID = :ssnUSER_ID) and (a.STATUS = 'RECEIVED' or a.STATUS = 'IN PROGRESS')">

<SelectParameters>

<asp:SessionParameter Name="ssnUSER_NAME" SessionField="ssnUSER_NAME" />

<asp:SessionParameter Name="ssnUSER_ID" SessionField="ssnUSER_ID" />

</SelectParameters>

</asp:SqlDataSource>

 

 

 

Subhashini
Top achievements
Rank 1
 answered on 05 Feb 2016
3 answers
213 views
I'm just posting a solution an error I was getting in Visual Studio 2010 as I couldn't seem to find a solution in the Telerik forums when searching. Forgive me if it's already posted.

When in Design mode all of my telerik controls on the page were showing the error "Error Creating Control - <ControlName> Object reference not set to an instance of an object"

I googled this error and found the 'workaround' solution at this link here.

You basically have to go to the OnInit event of your page (or of the class your page is inheriting from) and surround your init code with a check to see if it's not in DesignMode. Once you have surrounded your code with this check, you must close your pages and rebuild the project to make it work.

here's the code example:

protected override void OnInit(EventArgs e)
{
    if (!this.DesignMode)
    {
        //code here
    }
}

This is a bug with Visual Studio 2010 and not Telerik.

Hope this helps someone.
Kellie
Yudhishter
Top achievements
Rank 1
 answered on 05 Feb 2016
60 answers
2.3K+ views
Hi Guys,

I am actually in the middle of building a community site which requires a month-view calendar which people can add events to and view when they click them.

I was actually going to use an embedded google calendar because Rad:Calendar only has a basic month view and as far as I know doesn't show events spanning multiple days like google calendar does.

When I saw Rad scheduler  on telerik.com/quest I was delighted as It looks like it can do many of the same things but then I saw that it wasn't being released yet, so I have a few questions.

* Do you have a release date yet ?
* Will it show a month long view with mon-sun across the top and 4 rows for the weeks ?
* Will you be able to redirect the user to a different page when they click an event.
* will it show multi-day events in the same way as google calendar ? i.e. a box spanning across all the days.
* Will it be quick loading ?

Many thanks,

Jon
Plamen
Telerik team
 answered on 05 Feb 2016
3 answers
53 views

Hi There,

The RadBinaryImage in our application works well until Firefox upgraded to 43.0.1. Now the problem I am facing is that the image does not show unless I click or move the mouse on the page. I also noticed this issue only happens on gif files, not on jpeg files.

Here is the scenario: two pages included in this test demo, the first page has a linkbutton to open a radwindow, the second page is the RadBinaryImage to display a image file.

 The following is my test code, please help, thank you.

Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadBinaryImageDefault.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html>
 
    <head runat="server">
        <title></title>
    </head>
    <body>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function ShowWindow() {
                    window.radopen("RadBinaryImageTest.aspx", "RadTestWindow");
                    return false;
                }
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RadTestWindow" runat="server" Title="Rad Binary Image" Height="500px"
                    Width="500px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" AutoSize="false"
                    Behaviors="Pin, Move, close, Resize" Modal="true" />
            </Windows>
        </telerik:RadWindowManager>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="DefaultMasterScriptManager" runat="server">
            </asp:ScriptManager>
            <div>
                <asp:LinkButton ID="lbl_click" runat="server" Text='Click' OnClientClick="return ShowWindow();" Visible="true"/>
            </div>
        </form>
    </body>
</html>

 

RadBinaryImageTest.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadBinaryImageTest.aspx.cs" Inherits="RadBinaryImageTest" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadBinaryImage runat="server" ID="rbi_thumbnail" AutoAdjustImageControlSize="false"/>
    </div>
    </form>
</body>
</html>

 

RadBinaryImageTest.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Drawing.Imaging;
using System.IO;
using System.Drawing;
 
public partial class RadBinaryImageTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DisplayThumbnail();
    }
 
    public void DisplayThumbnail()
    {
        rbi_thumbnail.DataValue = ImageToBinary("../../index.gif");
    }
 
    public static byte[] ImageToBinary(string imagePath)
    {
        FileStream fileStream = new FileStream(imagePath, FileMode.Open, FileAccess.Read);
        byte[] buffer = new byte[fileStream.Length];
        fileStream.Read(buffer, 0, (int)fileStream.Length);
        fileStream.Close();
        return buffer;
    }
}

Konstantin Dikov
Telerik team
 answered on 05 Feb 2016
1 answer
39 views

My page is requesting silverlight and I cant figure out which control might be requesting this or how to disable the option

Is there a way to disable this entirely as the page runs fine without silverlight 

Pavlina
Telerik team
 answered on 05 Feb 2016
3 answers
55 views

Hi

How do I get the value of the Pager on the server, .Pagesize always returns the initial page load page size.

What I'm trying to do is capture the users selected Pagesize in save it into their profile (I don't need the full persistence framework)

 Also where should I do the setting of the page size, Did I read that it was to be done in the NeedDataSource event?

Andy

 

Eyup
Telerik team
 answered on 05 Feb 2016
5 answers
343 views
Hi,

I am using a gridview with full keyboard navigation control, which I am binding through code behind page load. at the same time I am selecting the first row of  that gridview through code behine by the below mentioned code :


 if (RadGrid1.MasterTableView.Items.Count > 0)
 RadGrid1.MasterTableView.Items[0].Selected = true;


Here I am using the client settings by below mentioned code to allow keyboard navigation for the radgrid.

<ClientSettings AllowKeyboardNavigation="true">
<KeyboardNavigationSettings AllowActiveRowCycle="true">
<Selecting AllowRowSelect="true">
</ClientSettings>


Now if I'm clicking on the radgrid rows then keyboard UP and DOWN arrow key is working fine but in case of Loading the page it is selecting the first row but then the keyboard UP and DOWN arrow key is not working.

How do I use UP and DOWN arrow key in case of page load or refreshed?

Eyup
Telerik team
 answered on 05 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?