Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
148 views

 

Hi Team,

 

We are using the telerik rad combo box (Version-2.7.2.0.) in our project.

We came across some issues with Rad combo box.

Follwing are the replication steps for the issue

  • Browse the webpage, Select Telerik  rad combo box
  • Keep the screen ideal for some time.Do not do any operation on page.
  • After sometime try to select any other record from rad combo box
  • This error message occurs:(ScrrenShot1)

 

On click of “Ok” button.We got one more error.:(ScrrenShot2)

Below are the details of telerik rad control and my application.

1)     It is web application developed in asp.net1.1

2)     It uses telerik rad combo box of version 2.7.2.0.

3)     It uses load on demand property with Item Requested event.

 

We have done some analysis. Below are findings

1)     The error pop up is coming from Rad combo box in built .JS file.

 

 

Can you please provide reason and solution for the following problem?

Reason for above error and solution.

Any service release of telerik control for this issue and whether it is compatible with asp.net1.1

 

 

Thanks & Regards,

Namrata

 

 

 

 

 

Namrata
Top achievements
Rank 1
 asked on 30 Jan 2012
6 answers
278 views
Version:  5.3.11.1116
Grid properties in aspx:
<telerik:RadGrid runat="server" ID="Grid" PageSize="20" Width="100%" EnableViewState="false" CssClass="basicList">
<MasterTableView  AutoGenerateColumns="false" AllowPaging="true" AllowCustomPaging="true" AllowSorting="true" DataKeyNames="ID">

We are using custom sorting and paging, and filtering.  We retrieve data via a stored procedure that returns the data sorted (but then the grid also sorts... see #2). 

We are experiencing two problems:
1)
Event sequence is causing 2-3 calls to the database on sorting or filtering -- first from NeedDataSource, and then from the sort or filter.  This raises scalability concerns.  How can we resolve?  When I use the following in the NeedDataSourc event as suggested in another post, the sort doesn't happen:
      if (e.RebindReason != GridRebindReason.PostbackViewStateNotPersisted)
            {
                LoadData(false);
            }
How can we retrieve data once and only once in all scenarios (initial load, sorting, fitlering, page size change, page index change, etc.)?

2)  In addition to reloading the data on sort, we are seeing an incorrect sort in at least one scenario.  Our default sort is descending on a datetimeoffset datatype column.  On page load, sort appears to be correct.  When one clicks on that column header, it correctly sorts ascending on those dates.  But when the column is clicked again to sort descending, it does not sort correctly --
e.g., it sorts a range from 12/08/2011 5:05 PM down to  12/05/2011 3:39 PM
then a range from  12/29/2011 3:33 PM down to  11/11/2011 4:58 PM,
and then a range from 01/04/2012 2:36 PM down to 01/04/2012 2:31 PM
The database is returning the data correctly sorted, so the grid is clearly resorting. 
Clicking again then correclty sorts by our default descending sort.  In this third state, the column now shows no sorting icon, so it's presumably correct because the grid is not resorting incorrectly at this point. 
But I haven't been able to find where or why.
How can we eliminate this incorrect sort?  Why & where/when (what event) is it happening?


Our LoadData() method accepts a boolean rebind parameter and calls Grid.Rebind() if true.

We have coded to the following events:
Grid.PageIndexChanged:  Calls LoadData(true) 
Grid.PageSizeChanged:  Calls LoadData(true)
Grid.SortCommand:  Calls LoadData(true)
Grid.ItemCommand: Calls LoadData(false) and Grid.Rebind()
Grid.ItemDataBound
Grid.NeedDataSource: Calls LoadData(false)

Page_Load: If not a postback, calls LoadData(false)

I can send this page code privately if needed.


Thank you.
Veli
Telerik team
 answered on 30 Jan 2012
5 answers
174 views
I created a toolbar with a button that launches a radwindow. However, when I close the radwindow, the toolbar does not respond. The mouseover and mouseclick events don't react. This problem is specific to the toolbar, because if I use a plain radbutton, it works fine.

Default.aspx:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="RadToolbarWindowTest._Default" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script type="text/javascript">
        function OpenWindow(sIDsURL) {
            var oManager = GetRadWindowManager();
            oManager.open(sURLsID);
            return false;
//                var oWnd = radopen(sURL, sID);
        }
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <telerik:RadWindowManager EnableShadow="true" Behaviors="Close, Move" ID="m_oRadWindowManager"
            runat="server" Modal="true" Skin="Windows7">
            <Windows>
                <telerik:RadWindow ID="m_oEditLocDialog" VisibleOnPageLoad="false" Title="Edit Location"
                    VisibleStatusbar="false" NavigateUrl="Window.aspx" runat="server" Modal="true"
                    Width="550" Height="500">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    <telerik:RadAjaxPanel runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadButton ID="m_oEditBtn" Text="EditBtn" runat="server" OnClick="OpenWindow">
        </telerik:RadButton>
        <telerik:RadToolBar ID="m_oOverviewToolbar" runat="server" Width="100%" EnableRoundedCorners="true"
            EnableShadows="true" OnButtonClick="OverviewToolBar_ButtonClick">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="EditTlbrBtn" CommandName="Edit">
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
    </telerik:RadAjaxPanel>
</asp:Content>

Default.aspx.cs:
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;
 
namespace RadToolbarWindowTest
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object senderEventArgs e)
        {
 
        }
 
        protected void OpenWindow(object senderEventArgs e)
        {
            OpenWindow(thism_oEditLocDialognull);
        }
 
        protected void OverviewToolBar_ButtonClick(object senderRadToolBarEventArgs e)
        {
            RadToolBarButton oBtn = e.Item as RadToolBarButton;
            if (oBtn.CommandName == "Edit")
            {
                OpenWindow(thism_oEditLocDialognull);
            }
        }
 
        public static void OpenWindow(Control oParentCtrlRadWindow oWindowstring sURL)
        {
            RadScriptManager.RegisterStartupScript(oParentCtrloParentCtrl.GetType(), "openWnd"string.Format("OpenWindow('{0}', '{1}');"oWindow.IDsURL), true);
        }
    }
}

Window.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Window.aspx.cs" Inherits="RadToolbarWindowTest.Window" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>

Window.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace RadToolbarWindowTest
{
    public partial class Window : System.Web.UI.Page
    {
        protected void Page_Load(object senderEventArgs e)
        {
 
        }
    }
}


This is either my fault (I don't have radtoolbar/radwindow configured correctly) or it is a bug. Any help would be greatly appreciated.
Dimitar Terziev
Telerik team
 answered on 30 Jan 2012
3 answers
502 views
Is there a property somewhere which will expand\collapse nodes, and\or set the default node state to expanded?

(without having to do a ItemDataBound)
Mira
Telerik team
 answered on 30 Jan 2012
3 answers
67 views
Hi

I'm trying to use the visual style builder but I keep getting some javascript errors.

Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.2; chromeframe/16.0.912.77; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Thu, 26 Jan 2012 09:47:48 UTC
 
Message: Object expected
Line: 2
Char: 12379
Code: 0
 
Message: Object expected
Line: 2
Char: 12379
Code: 0

Has anyone experienced the same issue? Is there a fix?

Thanks
Martin.
Bozhidar
Telerik team
 answered on 30 Jan 2012
2 answers
72 views
In My application have so many Grids. I want upgrade it all by using Telerik Grid.
My idea  to implement radgrid as a usercontrol and column names should be defined in each page of config files.
can any one provide me the way of approach and steps to create it. Thanks in advance.
Krishna
Top achievements
Rank 1
 answered on 30 Jan 2012
9 answers
192 views
We use RadControls for ASP.NET AJAX version 2011.2.712. And we think the point (.) on the numeric keyboard isn't functioning correctly in MS IE 9 for the RadNumericTextBox.

We use the following markup for the control.

 

<telerik:RadNumericTextBox id="tbVanKm" runat="server" Width="150px" 
    MaxLength="10"  NumberFormat-GroupSeparator=""  
    NumberFormat-DecimalSeparator="." NumberFormat-DecimalDigits="3" 
    Culture="Dutch (Netherlands)">
    <ClientEvents OnError="onError" > </ClientEvents>
</telerik:RadNumericTextBox>
Vasil
Telerik team
 answered on 30 Jan 2012
3 answers
116 views
Can you provide me with a link for a good online visual style builder tutorial?

Thanks,


Steve Holdorf
Bozhidar
Telerik team
 answered on 30 Jan 2012
1 answer
42 views
hi ,

i have 3 level hierarchical grid when load it shows the expand column as a first column but when i click any edit/delete/insert new record at the top level table then the expand column is not appearing  but it working fine at remaing two levels but when  out expand   how can i go for child levels after curd operation on toplevel ,see the image alos

Thanks & Regards,
M.Koteswara Rao.
Radoslav
Telerik team
 answered on 30 Jan 2012
1 answer
77 views
Hi,
   I have a grid that I am creating programmactically. Everything in the grid works fine. In the Column created Event I am setting the
Column.AutoPostback property to true. When I try to fiter on any of the columns I am getting this error

Microsoft JScript runtime error: 'value' is null or not an object

This is happening on all the column filters. Can someone tell me what is causing this since this is making the filtering useless for the grid? Please let me know since this is kind of a vague error from ajax and im having a hard time trying to find the cause and solution around it, your helps appreciated!!
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?