Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
413 views
I have used RadAjaxPanel in my page

 <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnResponseEnd="OnAjaxRequestEnd"
                                            LoadingPanelID="LoadingPanel1">
</telerik:RadAjaxPanel>

---------------------------

function OnAjaxRequestEnd(sender,eventArgs) {
          Alert('Request called');
        }

In this I have used, OnAjaxRequestEnd method,  in my script I have written this function but while executing it is giving me prompt OnAjaxRequestEnd method not found.
Please give solution for this. I am not getting where I have made mistake.
Andrey
Telerik team
 answered on 11 Feb 2013
1 answer
80 views

please can you let me know how can I bind  a business class to the Scheduler (RadScheduler)), without using sqldatasource since I have seen all the insert/upate/delete statements are listed on  it I would like to have control over this .

please can you reply ASAP or point me to a sample code that does this .

 

many thanks ,

Rohan

Plamen
Telerik team
 answered on 11 Feb 2013
5 answers
339 views
Hi,
if I write a search word in the combo, I can give the possibility that the item chosen is selected and confirmed with the tab on the keyboard? Because now I can only really select it with a click. Example I load in a combo record with its id. If I select the record in the combo only with the tab when I go to save the database I see that the id of the record in the combo is selected. however, if I click on the record of the combo everything works. I would like to speed up the management of the data that the user can select the record in the combo even just by pressing the Tad keyboard.

Then I load the data in this combo with the webservice. Is there a way that when you scroll the data to display multiple records you see the message waiting?

Then you can that when I select a record and I want to reopen the combo to select a new record, you will see the list of records from the selected one? Currently I have to delete the selected record to resume viewing records.

the code of radcombo is:

<telerik:RadComboBox ID="Comune" Runat="server" DropDownWidth="270px"
    EmptyMessage="Seleziona la tua città" EnableLoadOnDemand="True"
    Filter="StartsWith" Height="175px" MaxHeight="175px" EnableVirtualScrolling="True"
    LoadingMessage="Caricamento..." ShowMoreResultsBox="True"
    Skin="Sunset" Width="287px">
    <WebServiceSettings Method="GetCityNames" Path="WebService.asmx" />
</telerik:RadComboBox>
Hristo Valyavicharski
Telerik team
 answered on 11 Feb 2013
3 answers
201 views
I want to use a simple solution as suggested in
http://www.telerik.com/community/forums/aspnet-ajax/rotator/radrotator-resizing-issue.aspx

window.onresize=function()
  {  
     var rotatorElement = $get("<%= Rttr.ClientID %>");    
      rotatorElement.style.width = "225px";
      rotatorElement.style.height= "285px";  
   }

But why it is not working?  I used alert to check the style.width and it was set correctly. But the rotator was not refreshed.

I tried using the Ajax request (asp.net mvc4). But when I resize the browser, I have this error popup:

Unhandled exception at line 15, column 16485 in http://localhost:53858/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2012.3.1308.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:48dafc6d-3931-4c62-bfce-67d8969e45df:16e4e7cd:f7645509:24ee1bba:7165f74:ed16cbdc:19620875:3f6e8f3f

0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near '

 

<!DOCTYPE html>
'.

Slav
Telerik team
 answered on 11 Feb 2013
2 answers
472 views
hello
i have two tables and the grid is use them in hirarchi.
iwant to be able  to calculate both tables details on the footer. 
so far i managed to create the master table footer but it fails on calculating detail table. it claims it cant match cell to column header 
any ideas why?
Maor
Top achievements
Rank 1
 answered on 11 Feb 2013
1 answer
114 views
I have a Modal ToolTip with ShowEven and HideEvent both set to FromCode.  The ToolTip displays a panel that contains a RadGrid and two buttons.  The Grid is set to allow column filtering.

When I run the page and display the ToolTip it works fine.  However, if I apply a filter, that causes a PostBack which "closes" the ToolTip. I think from other posts I have read that I need to either reshow the ToolTip or "ajaxify" the grid so that the postback is only a partial. 

What's the best approach?  If I decide to reshow the ToolTip, how do I determine that it was supposed to be open?  If I decide to ajaxify the interaction, what settings?  I tried setting the Grid as the Target and the ToolTip as the Updated control but that didn't help.

Steve
Marin Bratanov
Telerik team
 answered on 11 Feb 2013
1 answer
200 views
I have a ToolTip that is set to Modal with the ShowEvent and HideEvent both set to FromCode.  Is there a way to determine if the ToolTip is showing in the CodeBehind?
Marin Bratanov
Telerik team
 answered on 11 Feb 2013
1 answer
159 views
Hello,

I have a project that basically looks like this:
  • Default.aspx - the page from which all activity begins
  • Vendors.aspx - a page displayed in a RadWindow opened from Default.aspx
  • VendorDetails.aspx - a page displayed in a RadWindow opened from Vendors.aspx which is used to add/edit a vendor.

When I open for the first time the Vendors window from Default.aspx and do some add/edit operation using the VendorDetails window (close/open several times), there is no problem. After I close the Vendors window, then open it again from Default.aspx, then open the VendorDetails, the first time I close the VendorDetails window, I get an error: Microsoft JScript runtime error: Can't execute code from a freed script.

I'm displaying the VendorDetails using Javascript:

var parentRadWindowManager = GetRadWindow().BrowserWindow.GetRadWindowManager();
var oWnd2 = parentRadWindowManager.open("VendorDetails.aspx?VendorID=0", "rwAddNewVendor");
   window.setTimeout(function () {
      oWnd2.set_title("Add new vendor");
      oWnd2.setActive(true);
      oWnd2.set_modal(true);
      oWnd2.setSize(800, 420);
      oWnd2.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
      oWnd2.set_visibleStatusbar(false);
      oWnd2.set_showContentDuringLoad(false);
      oWnd2.center();
      oWnd2.add_close(RefreshGrids);
   }, 0);
return false;

I suspect the problem is in the VendorDetails.aspx RadWindow. This window contains the following Javascript:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
   <script type="text/javascript">
       function GetRadWindow() {
           var oWindow = null; if (window.radWindow)
           oWindow = window.radWindow; else if (window.frameElement.radWindow)
           oWindow = window.frameElement.radWindow; return oWindow;
       }
 
       function windowClose() {
           var oWindow = GetRadWindow();
           oWindow.showConfirm = false;
           oWindow.argument = null;
           oWindow.close();
           return false;
       }
   </script>
</telerik:RadCodeBlock>
Marin Bratanov
Telerik team
 answered on 11 Feb 2013
1 answer
198 views
I have migrated a web application from .net framework 2.0 to 4.0 and I am using Telerik.Web.UI dll with version (2009.1.311.35).In one aspx page 
when I check the asp:checkbox with AutoPostback="True", I am getting Javascript error Sys.WebForms.PageRequestManager.getInstance()._destroyTree(_3d);) and page do not get postback, I have goggled it and find some blog post for it.

http://www.toplinestrategies.com/dotneters/random-error-message/random-error-message-sys-webforms-pagerequestmanager-getinstance-_destroytreeb/?lang=en
http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-vs2010-bug.aspx

I do not have RadAjaxManager either on the page or master page which it's use ( But it's there in other pages of application), but I do have the RadComboBox on the same page.
Can you please tell me is there any workaround available for the version of telerik we are using??
we have already upgraded to the new version,but for intermediate release we want to ship with old version of telerik only.

Please suggest.
 

Maria Ilieva
Telerik team
 answered on 11 Feb 2013
7 answers
1.4K+ views
Hi,

I have been unsuccessful in obtaining a reference to the RadWindowManager via the GetRadWindowManager or the $find() calls.

$find returns null and GetRadWindowManager returns undefined.

Any help would be greatly appreciated.

Thanks in advance,
Robert


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
     
    <script language="javascript" type="text/javascript">   
           
            function OpenWindow(name) 
            { 
                alert(name); 
                 
                var mgr =  $find('RadWindowManager1'); // GetRadWindowManager(); 
                 
                var wnd = mgr.open("http://www.google.com", null);          
                 
                return false; 
            }   
               
    </script> 
     
       
</head> 
<body> 
    <form id="form1" runat="server"> 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> 
            <Windows> 
                <telerik:RadWindow ID="RadWindow1" runat="server"> 
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
         
        
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />       
        <asp:Label ID="InjectScript" runat="server" Text=""></asp:Label> 
 
    </form> 
</body> 
</html> 
 

protected void Button1_Click(object sender, EventArgs e) 
    { 
        InjectScript.Text = "<script type='text/javascript'>OpenWindow('RadWindowServicePopup')</script>"; 
    } 


Jasfer
Top achievements
Rank 1
 answered on 11 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?