Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
1.1K+ views
Hello Community,

Recently lots of the developers reported that their sites are not working in IE10. Depending on what controls they have on the page, the errors can be:
  • "Unable to get property 'PageRequestManager' of undefined or null reference"
  • "__doPostBack" is undefined or not an object.
  • "'$get' is undefined"

If you have some of these errors only on IE10, and your site is working in other browser, it is most probably that the MicrosoftAjaxWebForms.js fails to be included in the scripts for your page. This is known to be caused by bug in the browser definition files in .NET 4.0 and .NET 2.0 used by the ASP.NET.

Since the RadControls are made on top of the AjaxWebForms,if the Microsoft's scripts are not loaded properly, the RadControls will not work as well. For example if you have RadAjaxManager in your page, it's initialization will fail, when PageRequestManager is requested, you might think at first that the problem is in the RadAjaxManager, but on later look you see that the PageRequestManager is defined inside the MicrosoftAjaxWebForms.js where is the actual problem.

You have several options to confirm that this is the issue:

  • Open the developer tools of IE10, capture the network traffic and see if the bot Microsoft scripts (MicrosoftAjax and MicrosoftAjaxWebForms) are included.
  • Run the sample web page attached to this post, click the "TestPostBack", if you get JavaScript error then the MicrosoftAjaxWebForms is not loaded properly.
  • Run your site in other browsers like IE9, Firefox, Chrome, Opera. If it works on all of them and not on IE10, then the problem is the definition files.

Luckily there is solution for the problem: .NET fix for your server released by Microsoft.
For .NET 4.0 check this one: http://support.microsoft.com/kb/2600088
For .NET 2.0:
http://support.microsoft.com/kb/2600100 for Win7 SP1/Windows Server 2008 R2 SP1, Windows Vista/Server 2008, Windows XP/Server 2003
http://support.microsoft.com/kb/2608565 for Win7/Windows Server 2008 R2 RTM

Since the problem is not particularity in the RadControls, you might find usable information out in the web, see this blog post by Scott Hanselman for more information:
Bug and Fix: ASP.NET fails to detect IE10 causing _doPostBack is undefined JavaScript error or maintain FF5 scrollbar position

All the best,
Vasil,
the Telerik team

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 11 Dec 2012
2 answers
544 views
Hello,

Telerik radgrid is failling to import excel with 20000 thousand record.

can you please give me little demo or example or code for IMPORT Excel TO RADGRID 

Thanks in advance

Amit
Amit
Top achievements
Rank 1
 answered on 11 Dec 2012
2 answers
210 views
Hi,

I have a RadGrid with a Template column which has a checkbox in the header and a checkbox in the Item area.



Here's the Form Decorator in the Master Page:
<telerik:RadFormDecorator ID="FormDecorator1" runat="server"  Skin="Metro" DecoratedControls="Default" ControlsToSkip="Buttons" />


<
telerik:GridTemplateColumn UniqueName="TemplateSelect">
    <ItemTemplate>
        <asp:CheckBox ID="chkSelected" runat="server" OnCheckedChanged="RowCheckedChanged" />
    </ItemTemplate>
 
    <HeaderTemplate>
        <asp:CheckBox ID="CheckBoxHeader" runat="server" OnCheckedChanged="CheckBoxHeader_CheckedChanged" />
    </HeaderTemplate>
</telerik:GridTemplateColumn>


When I enable the FormDecorator, if I try to click on the Checkboxes (chkSelected) the Checkboxes are not selectable
but if I disable the form decorator everything works fine, I noticed that this only happens in the Checkbox
that is inside the <ItemTemplate> but not with the one that's inside the <HeaderTemplate>

Is there a fix or workaround to this issue?

Thank you.
Danail Vasilev
Telerik team
 answered on 11 Dec 2012
1 answer
107 views
I have TreeListTemplateColumn column in my treelist. I would like to show dynamic tooltip when the user hover the template column. For example, I have 2 progress bar within my template column. I would like to show different tooltip for each progress bar depending on data on that row.

Is there an event on client or server side to faciliate this?
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
1 answer
64 views
Hi,
 We have an application that's been in production for over a year. Basically, it manages open tickets.
 Apparently this is the first time we've had more than 20 open tickets where tickets appearing on the 2nd page had child tickets.

The problem is that - when the page is changed the Self Hierarchy breaks down and the grid does not recognize a ticket as a parent ticket, and therefore it's child tickets are unavailable.

I use a recursive function that is passed a GridTableView that grabs an array of nestedVieItems and determines whether they have any children, and if so it will add the button to allow them to be visible and it changes the styling.

basically the problem is that the MasterTableView does not contain nestedviewitems for items that aren't on the first page.
If I set the PageSize = aNumber > numberOfTickets, then everything works as expected, its when the pagesize is set to a number less than the number of tickets and a ticket on the second page has children, that we have an issue.

Oh - and if I change the code to have the expand/collapse button always visible, when I click it next to an item on the 2nd page that I know has children - it says: "No child records to display". So I guess the issue isn't with either of the 2 below subroutines, its that the RadGrid doesn't think that any of my items on a Page that is not the first page has any children.

Below is the code i use to hide/show the ExpandCollapse button and set the style of the row.

public void Page_PreRenderComplete(object sender, EventArgs e)
{
      
    if(btnToggleHierarchy.Checked)
        HideExpandColumnRecursive(RadGrid1.MasterTableView);
       
}
/// <summary>
/// Create buttons on items that have children
/// </summary>
/// <param name="tableView"></param>
public void HideExpandColumnRecursive(GridTableView tableView)
{
    GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
    foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
    {
        foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
        {
            nestedView.Style["border"] = "0";
            Button MyExpandCollapseButton = (Button)nestedView.ParentItem.FindControl("MyExpandCollapseButton");
            if (nestedView.Items.Count == 0)
            {
                if (MyExpandCollapseButton != null)
                {
                    MyExpandCollapseButton.Style["visibility"] = "hidden";
                    ((TableCell)MyExpandCollapseButton.Parent).BackColor = System.Drawing.Color.White;
                }
                nestedViewItem.Visible = false;
            }
            else
            {
                if (MyExpandCollapseButton != null)
                {
                    //Only set the background if we are the Highest Parent... otherwise leave it to the
                    //alternating styles
                    if (nestedView.ParentItem.OwnerTableView == RadGrid1.MasterTableView)
                        ((TableCell)MyExpandCollapseButton.Parent).CssClass = "ExpandCollapseBackground" ;
                      
                    MyExpandCollapseButton.Style.Remove("visibility");
                }
            }
            if (nestedView.HasDetailTables)
            {
                HideExpandColumnRecursive(nestedView);
            }
        }
    }
}
Kostadin
Telerik team
 answered on 11 Dec 2012
1 answer
78 views
Hi,

I'm trying to use the Scheduler control using a database as appointments storage.
I followed the steps to add the control, add a data-source and connect them. 
The control appears in the website and the data entered by hand in the data-source
also appears in the web page. Moving around (week-view, day view and so on) is OK,
but I cannot interact with the control when trying to add / insert / edit. The allow insert
is enabled. Nothing is changed from the default properties. 

Plamen
Telerik team
 answered on 11 Dec 2012
1 answer
135 views
I am populating my scheduler with appointments pulled from a database and bound server-side.  I would like to be able to filter my data-set based on when the user changes views or current day, month, etc.  However, I need the aforementioned java-script event to fire in order to do so.  Why doesn't this event fire when using server-side data binding, and is there a workaround?
Plamen
Telerik team
 answered on 11 Dec 2012
1 answer
51 views
Dear Teleric team,

i found a bug and i think is in all Telerik controls.
If you have a EmptyMessage and you try to edit it, it is not updated.
From client side, the property EmptyMessage is updated but the EmptyMessageTemplate is not.

Thank you for your time.

Best regards,
George.
Kalina
Telerik team
 answered on 11 Dec 2012
11 answers
291 views
I have a treeview, and node expand is handled by server side callback (on demand), which works fine.  What I want to is expand the same node repeatedly with the server side callback, based on some ajax server side events from a different panel.

I have an ajax panel next to the tree view with buttons to add new things to the folders (nodes), which needs to change the contents of a node on the tree. 

Seems if I could add a client side function to force a node to clear children then call server side load on demand, I could call that from ajax1.ResponseScripts.Add(...) repeatedly.

Is this possible?  Thanks.
Nicolaï
Top achievements
Rank 2
 answered on 11 Dec 2012
3 answers
111 views
HI,
I am binding the radgrid using the session variable. The session variable is getting data from a datatable.

Session["GridData"] = datatablevalue ; 
 RadGrid1.DataSource = Session["GridData"];

In the insertcommand, i want to insert the new values to the existing session variable.

How to achieve this?
Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?