problem with Ajax - $find()

3 posts, 0 answers
  1. skinflint
    skinflint avatar
    3 posts
    Member since:
    Jan 2010

    Posted 13 Jan 2010 Link to this post

    I am trying to get all RadDock and RadDockZone objects. Code goes like this:

    First I get all IDs from a page since controls are generatet from code behind:

    $('.RadDockingZone').each(function() {
                var testZone = this;

    $('.RadDockableObjectFixed').each(function() {
              var testDock = this;

    This is a part of code that creates problems:

    for (i = 0; i < dockIDs.length - 1; i++) {
            var zone = $find(zoneIDs[i]);
            var dock = $find(dockIDs[i]);        

    These lines always returns nulls
    var zone = $find(zoneIDs[i]);
    var dock = $find(dockIDs[i]);     

    Any ideas what is causing a problem?
  2. Pero
    Pero avatar
    1156 posts

    Posted 18 Jan 2010 Link to this post

    Hello skinflint,

    From the provided source code I can see that you are using RadDock for ASP.NET i.e. the classic version of RadDock and not its AJAX version. This means that in order to find the needed client objects you need to use the following methods:
    • Zone - RadDock_GetDockingZone(sId)
    • Dock - RadDock_GetDockableObject(sId)

    More information about RadDock for ASP.NET can be found on our website:

    P.S. Our suggestion for all new development is to use RadDock for ASP.NET AJAX, which is built on top of ASP.NET AJAX. We stopped the development of RadDock for ASP.NET and all our new development is concentrated on RadDock for ASP.NET AJAX. Most of bugs related to RadDock for ASP.NET are fixed in it. You can find more about it in our online examples here:

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. skinflint
    skinflint avatar
    3 posts
    Member since:
    Jan 2010

    Posted 19 Jan 2010 Link to this post

Back to Top