RadAjaxPanel in DotNetNuke

7 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 14 Dec 2010 Link to this post

    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);
                                
                            

                        }                   

                    }               
                    
                }   
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 20 Dec 2010 Link to this post

    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.
  3. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 29 Dec 2010 Link to this post

    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,

  4. Rohan
    Rohan avatar
    16 posts
    Member since:
    Feb 2012

    Posted 29 Feb 2012 Link to this post

    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.


  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Mar 2012 Link to this post

    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.
  6. Rohan
    Rohan avatar
    16 posts
    Member since:
    Feb 2012

    Posted 03 Mar 2012 Link to this post

    Hi Maria,

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

    How to update perticular part of page.

  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 05 Mar 2012 Link to this post

    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.
Back to Top