This is a migrated thread and some comments may be shown as answers.

[Solved] problem when using AjaxManager with Automatic Insert

7 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
B
Top achievements
Rank 1
B asked on 11 May 2008, 03:37 AM
I have a grid that is attached to an objectdatasource. 

I have a dropdown column and an html column that get frozen when I use the AjaxManager and I hit the Add New Record button.

When I dont use the AjaxManager these columns works fine.

I'm not sure whats going on with this, am I doing something wrong?

I can still insert fine but since the controls are unusable and cant be changed I have to disable ajax...

7 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 12 May 2008, 05:50 AM
Hello B,

All you need is to make sure the Grid -> Grid AJAX setting is added for the AJAX Manager. Do you get the problem with the following source as well?

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadGrid1"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 


All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
B
Top achievements
Rank 1
answered on 13 May 2008, 08:55 PM
Yes that code already exists there.

I just had to publish my project because I am under deadlines...

Now alot more of the new Ajax Controls are not working.

For instance, I added a tab strip to the page and now when you click the tabs they dont change at all.

I also got this JS error in my browser. Relating to ScriptResourcs.axd

Sys.WebForms.PageRequestManager.getInstance() has no properties  
add_beforePostback(function())ScriptResource.ax... (line 1008)  
initialize()ScriptResource.ax... (line 247)  
createCallback()ScriptResource.ax... (line 5)  
createCallback(function(), Object _dropDownWidth=0 _height=0 _skin=Vista, null, null, div#dnn_ctr397_Store_ctl00_ctl00_lstOrderStatus.RadComboBox)ScriptResource.ax... (line 5)  
(no name)()Default.aspx (line 953)  
createCallback(Object _disposableObjects=[4] _components=Object, Object)ScriptResource.ax... (line 5)  
createCallback()ScriptResource.ax... (line 5)  
createCallback()ScriptResource.ax... (line 5)  
[Break on this error] Array.add(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements,this... 


Also, I am using DotNetNuke 4.8.2 .  I found another post about similiar problems that had a solution of changing the default.vb file, i did this and still no change for me.

The tabs are working on my local development machine, but not the server.

I have verified that I uploaded all the correct files to the bin folder, I even tried registering them to the Gac on the server.  Not sure what I am missing.

My local dev box is Vista w/ Sql Express - IIS 7

Server is on Win 2003 / Sql2005 - IIS 6

Cant figure this one out and its driving me nuts.
0
B
Top achievements
Rank 1
answered on 13 May 2008, 09:07 PM
Also using Asp.Net 2.0
0
B
Top achievements
Rank 1
answered on 14 May 2008, 01:38 AM
I got the other controls working, that was just a stupid mistake on my part.

I still cannot get the grid to work when hitting insert... I do notice that ajax works first when I hit "Add New Record"  it shows the loading panel and loads.  After that, everything is disabled, if i hit "Refresh", or "Add New Record" or basically any thing else, I get no response. 

I have some screen shots I can send you as well.  I did notice that firefox shows the grid with lots of dots all over every single element. 

I tried running it on the default DNN skin also to make sure I didnt have any bad html / css etc.

Here is a copy of the html
This was also modeled after your example of Auto Insert example except using an object data source.

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">    
                <AjaxSettings>    
                    <telerik:AjaxSetting AjaxControlID="grdNotes">    
                        <UpdatedControls>    
                            <telerik:AjaxUpdatedControl ControlID="grdNotes" LoadingPanelID="grdAjaxPanel" />    
                        </UpdatedControls>    
                    </telerik:AjaxSetting>    
                </AjaxSettings>    
            </telerik:RadAjaxManager>    
    
<telerik:RadAjaxLoadingPanel ID="grdAjaxPanel" runat="server" Height="75px" Width="75px" Transparency="25">  
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
        </telerik:RadAjaxLoadingPanel>        
<telerik:RadGrid ID="grdNotes" OnDataBound="grdNotes_DataBound" runat="server"   
        Skin="Sunset" DataSourceID="objNotesDataSource" 
    AllowAutomaticInserts="True" AutoGenerateColumns="False" GridLines="None" 
    OnItemInserted="grdNotes_ItemInserted"   
     ShowFooter="True"  > 
    <MasterTableView CommandItemDisplay="Top" DataKeyNames="OrderNoteID">  
        <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn Resizable="False" Visible="False">  
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="OrderNoteID" Display="false" ReadOnly="true"></telerik:GridBoundColumn> 
             
            <telerik:GridDropDownColumn DataSourceID="objNoteTypesDataSource" HeaderText="Type"  DataField="Type" ListTextField="Name" ListValueField="Value" UniqueName="Type" ></telerik:GridDropDownColumn> 
            <telerik:GridCheckBoxColumn DataField="EmailSent" DataType="System.Boolean" HeaderText="EmailSent" 
                SortExpression="EmailSent" UniqueName="EmailSent">  
            </telerik:GridCheckBoxColumn> 
            <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" 
                SortExpression="Subject" UniqueName="Subject">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn ReadOnly="true" DataField="Date" DataType="System.DateTime" HeaderText="Date" 
                SortExpression="Date" UniqueName="Date">  
            </telerik:GridBoundColumn>   
            <telerik:GridHTMLEditorColumn DataField="Message"></telerik:GridHTMLEditorColumn> 
              
            <telerik:GridBoundColumn ReadOnly="true" DataField="Owner" HeaderText="Owner" SortExpression="Owner" 
                UniqueName="Owner">  
            </telerik:GridBoundColumn> 
            
              
            
        </Columns> 
 
    </MasterTableView> 
</telerik:RadGrid> 
0
Konstantin Petkov
Telerik team
answered on 14 May 2008, 06:12 AM
Hi B,

First of all, do you get the problems with AJAX enabled only? I would also check if the problem persists with the same code in a project out of DNN. If so, please send the sample runnable application through a support ticket, so that we can review it locally and get back to you with our findings.

You can also check if replacing the manager with an ASP:UpdatedPanel (wrapping the Grid inside UpdatePanel) functions properly so the issue you get is not a general AJAX problem in DNN.

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
B
Top achievements
Rank 1
answered on 14 May 2008, 05:05 PM
I actually tried adding an update panel around it last night and that seemed to work fine.. I will be using this until we can figure out the AjaxManager problem.

I will try to export a sample project / module from dnn that displays this as soon as i get a chance... I cannot send the project I am working on now.  Its just too large and complicated.


0
Konstantin Petkov
Telerik team
answered on 15 May 2008, 04:51 AM
Hello B,

We will be expecting your project. Thank you for the understanding and cooperation!

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
B
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
B
Top achievements
Rank 1
Share this question
or