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

RadAjaxPanel in DotNetNuke

6 Answers 56 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 14 Dec 2010, 11:44 AM
Hi,

I am using RadAjaxPanel in my DotNetNuke Application, I'm trying to do a RadAjaxPanel ajaxRequest (invoked on the client) to call the server event-handler. I do have a server-side AjaxRequest handler defined but it never gets call because of something with the request. What do I have to do to figure this out?

Please Help Me !!!

function chkBox_Click(chk)
            {
                
                var combo = $find("<%= cmbRoleName.ClientID %>");
                var text = "";             
               
                //get the collection of all items
                var items = combo.get_items();
                
                //enumerate all items
                for (var i = 0; i < items.get_count(); i++)
                {
                    var item = items.getItem(i);
                    
                    //get the checkbox element of the current item
                    var chkRole = $get(combo.get_id() + "_i" + i + "_chkRole");
                                        
                    if (chkRole.checked)
                    {
                        text = item.get_text()
                        var ajaxPanel = window['<%=rapUserJobMapping.ClientID %>'];
                        var ajaxValue = "ADDUSERS\r\n"+ text;   
                        alert(ajaxValue)
                        ajaxPanel.AjaxRequest(ajaxValue);
                            
                        

                    }                   

                }               
                
            }   

6 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 20 Dec 2010, 10:22 AM
Hi Muhammad,

Firstly, try using Firebug for Firefox or enable scripts debugging in IE to see if some javascript errors are thrown. You can also try debugging the page and see if the Page_Load event is fired.

Check it out and let me know how it goes.

All the best,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Muhammad
Top achievements
Rank 1
answered on 29 Dec 2010, 12:14 PM
Hi,

Thank you so much for your reply. This problem occurs because I was using DotNetNuke APIs to bind my RadComboBox control. 
Now I have solved my problem.

Thank You,

0
Rohan
Top achievements
Rank 1
answered on 01 Mar 2012, 04:05 AM
Hi Iana ,

I am new in Rad control development with dotnetnuke , i want to replace update panel to any rad control which is suitable for asynchronous  post back and conditional updates.


0
Maria Ilieva
Telerik team
answered on 02 Mar 2012, 03:18 PM
Hello Rohan,

You could use RadAjaxManager added programmatically on the main page like this:
protected void Page_Load(object sender, EventArgs e)
  
{
  
    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
  
    if(manager == null)
  
    {
  
        manager = new RadAjaxManager();
  
        manager.ID = "RadAjaxManager1";
  
        this.Controls.Add(manager);
  
        this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);
  
    }
  
}


Then in each DNN Module you could get reference to this main RadAjaxManager using the RadAjaxManager.GetCurrent(Page) method and add the needed settings programmatically as shown here:
http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html

I hope this helps.

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Rohan
Top achievements
Rank 1
answered on 03 Mar 2012, 02:00 PM
Hi Maria,

Thanks for replay and providing a valuable Information. Once again thanks .

How to update perticular part of page.

0
Maria Ilieva
Telerik team
answered on 05 Mar 2012, 10:33 AM
Hi Rohan,

You should add ajax settings programmatically as shown in the provided help topic. The first argument will be the control that will initiate the Ajax request and the second one will be the control that should be updated on that request. This way only the control added as updated control will be updated and not the whole page.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Muhammad
Top achievements
Rank 1
Rohan
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or