Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
805 views
I am trying to use RADAjaxManager but when I run my app and cause a trigger, I get the following error:

Microsoft JScript 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 'Manager1"));
});
|<div id="__asptrace"'.

The error is occuring in this code:

    function Sys$WebForms$PageRequestManager$_endPostBack(error, response) {  
        // DevDiv Bugs 130268: There could have been a 2nd request that started while this one was being  
        // processed. Detect this by comparing the request for the current response to the _request field,  
        // which stores the latest request that has begun. If they are different, do not clear the state  
        // data that will be required by the 2nd request's response.  
        if (this._request === response.get_webRequest()) {  
            this._processingRequest = false;  
            this._additionalInput = null;  
            this._request = null;  
        }  
 
        var handler = this._get_eventHandlerList().getHandler("endRequest");  
        var errorHandled = false;  
        if (handler) {  
            var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, this._dataItems, response);  
            handler(this, eventArgs);  
            errorHandled = eventArgs.get_errorHandled();  
        }  
        // DevDiv Bugs 130268: See above  
        if (!this._processingRequest) {  
            this._dataItems = null;  
        }  
        if (error && !errorHandled) {  
            // DevDiv 89485: throw, don't alert()  
            throw error;  
        }  
    }  
 

Here is my code:

        <form id="form1" runat="server">  
            <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
            </telerik:RadScriptManager> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"   
                EnableHistory="True">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="btnSearch">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="InputAgent" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
 

                <asp:FormView   
                    ID="InputAgent"   
                    Height="250px" Width="926px"   
                    DefaultMode="Edit"   
                    DataKeyNames="ID,Version"   
                    DataSourceID="srcAgent" 
                    AllowPaging="true" 
                  PagerSettings-Visible="false" 
                    OnItemUpdated="frmAgent_ItemUpdated" 
                    runat="server" HorizontalAlign="Left" 
                    > 
 
I have left out the Template code for the formview control.

What am I doing wrong?
Iana Tsolova
Telerik team
 answered on 15 Oct 2008
6 answers
295 views
Hi,
im using RadFormDecorator together with a DIV and some form controls. The issue is that it refuses to render properly. I have the form inside a splitter pane it that might disturbe the issue. 

<

telerik:RadFormDecorator ID="RadFormDecorator1" Skin="Web20" runat="server" DecorationZoneID="zonPersonalSettings" />

<div id"zonPersonalSettings">

<

asp:button ID="btnChooseRegion" runat="server" onclick="btnChooseRegion_Click"

Text="Region"/>

<hr />

<asp:button runat="server" Text="LoggaUt" id="Button1"

onclick="btnLogout_Click"></asp:Button>

</div>

The button´s graphics are rendered wrong so its only the left side of the image showing.
(like if it was the same problem on this forum it would only be the green bit on the "Post" buttons here on the forum) 

Have i uploaded the graphics wrong somewhere or why isnt my buttons showing?   (its the same error or all Skins im using, only left bit showing)

Terry Guarisco
Top achievements
Rank 1
 answered on 15 Oct 2008
10 answers
1.1K+ views
Hi Guys,

I am currently trying to build an app that requires a modal div to pop up when a picture is clicked on. I have been trying for 3 days to find something and it doesn't seem to exist!

Microsoft have put something similar in their ajax control toolkit here...

http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx

but that one is client side only and doesn't allow you open the popup on a callback/postback and load dynamic controls into the div etc....

Rad Window would be once solution but isn't quite right as I don't need to load content from another page and really need a simple div.

So, a Rad control to make a modal div pop up on postback would be really cool, or if anyone has any other suggestions they would be greatly appreciated :)
Sebastian
Telerik team
 answered on 15 Oct 2008
2 answers
150 views
Hello,

Our first deadline is gone, up to the next one. We discovered a strange error in javascript:

_d6.parentNode is null
_d6.parentNode.removeChild(_d6); on line 5570 of the javascript of telerik.

the code around is as follows:
5557var _d8=now-_d6._startDisplayTime;
5558var _d9=this._minDisplayTime;
5559if(this._isSticky){
5560if(_d9>_d8){
5561window.setTimeout(function(){
5562_d6.style.display="none";
5563},_d9);
5564}else{
5565_d6.style.display="none";
5566}
5567}else{
5568if(_d9>_d8){
5569window.setTimeout(function(){
5570_d6.parentNode.removeChild(_d6);
5571if(typeof (_d2)!="undefined"&&(_d2!=null)){
5572_d2.style.visibility="visible";
5573}
5574},_d9);
5575}else{
5576_d6.parentNode.removeChild(_d6);
5577if(typeof (_d2)!="undefined"&&(_d2!=null)){
5578_d2.style.visibility="visible";
5579}
5580}
5581}

The strange thing is that in debug mode the error does not appear. We see the issticky element so we think it has something to do with the loadingscreens.

the situation where it happens is as follows:
selectedindexchanged on a radcombobox which will update a very simple radgrid on which a loadingpanel is defined.

Any suggestions could be helpfull.

The Sofim-team (Belgium)
Simon
Telerik team
 answered on 15 Oct 2008
1 answer
108 views
Hi,

I spent time here to understand how RadAJAX is working but I'm not able to make it working. I tried samples from demos.telerik.com but i do not have ascx files to compile it. In addition, I do not have a database.

Is there really simple solution for a couple of controls? Can one of controls update another? Can server's "on demand" for one control see state of another control without postback?

Thanks in advance,
Eugene
Maria Ilieva
Telerik team
 answered on 15 Oct 2008
2 answers
181 views
How is it possible to show the RADGrid as a node inside a RAD Treeview? I need to populate the RADGrid on node expand event and then show the records per treenode.
Omarr
Top achievements
Rank 1
 answered on 15 Oct 2008
2 answers
286 views
Hi

maybe this is a newbie question and has been answered in previous threads but after searching around I could not find an answer to my needs.

I have a combobox within a formview. The formview is initially in insert or edit mode. I have a lookup source binded to the combo. I want to be able to bind the value to a db field and on edit mode show the selected value reflecting what is stored in the db.

The formview is using an objectdatasource.

any help will be greatly appreciated.


zadiggle
Top achievements
Rank 1
 answered on 15 Oct 2008
2 answers
185 views
We recently upgraded from the Q2 2008 release to the Q2 SP2 release. In one instance, we have a radrotator with a context menu that is inside of an iframe. When you right click on the rotator the menu attempts to display, but displays as all white. and covers up anything in the rotator. This was working in the original Q2 release.

The menu is using the Default skin and has 4 items in it. If I run the page that is normally inside the iframe outside of the iframe, the menu renders correctly. In both instances, I can click on the menu (even though I can't see it in the iframe) and it will respond correctly.

Thanks,
Adam
Adam
Top achievements
Rank 1
 answered on 15 Oct 2008
1 answer
135 views
I have created a quicktime player custom button for rad editor lite. On UI mode the player loads fine although upon switching to view HTML the param tags of the quicktime object tag are removed? Is this a known bug for rad editor?

Regards,
Nick
George
Telerik team
 answered on 15 Oct 2008
4 answers
182 views
 I am trying to get my grid to update my supplier table but I keep getting an error.
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

Protected Sub grdSuppliers_Competetitors_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdSuppliers_Competetitors.UpdateCommand
        Dim oSup As New SupplierCompetitor
        'Get the GridEditableItem of the RadGrid       
        Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
        'Get the primary key value using the DataKeyValue.       
        Dim SupplierCompetitorID As String = editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("SupplierCompetitorID").ToString()
        'Access the textbox from the edit form template and store the values in string variables.       
        'Dim SupplierCompetitorID As String = (TryCast(editedItem("SupplierCompetitorID").Controls(0), TextBox)).Text
        Dim supplierCompetitorName As String = (TryCast(editedItem("supplierCompetitorName").Controls(0), TextBox)).Text
        Dim IsCompAs Boolean = (TryCast(editedItem("IsComp").Controls(0), CheckBox)).Checked

        If (TryCast(editedItem("IsWard").Controls(0), CheckBox)).Checked Then
            If oSup.IsCompExists Then
                Me.Label1.Text = "Another supplier/competitor has already been defined as Ward."
                Me.Label1.Visible = True
            End If
        ElseIf oSup.Exists(supplierCompetitorName) Then
            Me.Label1.Text = "Supplier/Competitor entered already exists."
            Me.Label1.Visible = True
        Else
            oSup.UpdateSupplierCompetitor(SupplierCompetitorID, supplierCompetitorName, IsComp)
        End If
Steve
Top achievements
Rank 1
 answered on 15 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?