Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Client side callbacks not working?Client side callbacks not working?
Previous
 
Next
New Post
12/4/2009 3:43 AM
 

 Hi

I have run into an very interesting scenario when developing a custom DNN module with Infragistics controls. The Infragistics guys are looking into it as well. Here is the scenario:

1. I am building a custom DNN module using some of Infragistics ASPNET AJAX controls

2. The particular control in question (WebDropDown) uses a client side callback function where another control can be loaded with data based on the first controls data selection. Basically when Control A's selection changes a javascript function is called which then calls the server side loaditems method which loads the second control with data. This is done using AJAX

3. I build the scenario using a standard ASP.NET webpage and it works fine. The moment we do it in a DNN environment it does not work

4. I have confirmed that the DNN page is bringing through the relevent javascript function which is used to make the callback to the server.

5. I have also confirmed that the actual function is being called when the control A selection is changed..

6. It seems that the actual CallBack to the server is not happening in DNN but is is happening in the standard ASP.NET webapp.

You can see the thread I have running with Infragistcs here:

http://forums.infragistics.com/forums/p/35481/207282.aspx#207282

Here is the actual javascript that is being used to load the items into control B:

 // this function allows a developer to programatically populate the dropdown with items, based on certain filtering criteria
    loadItems: function(text) {
        this._setLoadItemsText(text);
        var cbo = this._callbackManager.createCallbackObject();
        cbo.serverContext.type = "itemsRequested";
        this.__manualLoadItems=true;
        this.set_valueBeforeFilter(this.get_currentValue());
        // cbo.serverContext.props = Sys.Serialization.JavaScriptSerializer.serialize(item._csm.get_transactionList())
        cbo.serverContext.props = Sys.Serialization.JavaScriptSerializer.serialize(this._clientStateManager.get_transactionList());
        
        if (this._pi) 
        {
            this._pi.set_enabled(false);
        }
        this._callbackManager.execute(cbo, true);
        if (this._pi) 
        {
            this._pi.set_enabled(true);
        }

    },


I am I missing something here?    Is there something different in DNN to a standard ASP.NET app that needs to be configured to make this work?   

Many Regards
Andrew

 
New Post
12/9/2009 6:43 PM
 

You probably have to replace ScriptManager with Infagistics'.   I had to do that with Telerik Controls.

It is line 42 of Ajax.VB in DNN 4.9.5 source.  

               m_ScriptManagerType = Reflection.CreateType("Telerik.Web.UI.RadScriptManager", True)

http://www.telerik.com/help/aspnet-ajax/dnn-replace-scriptmanager-radscriptmanager.html

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Client side callbacks not working?Client side callbacks not working?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out