Ajax Manager Event Filter

Thread is closed for posting
23 posts, 0 answers
  1. Nicholas Walker
    Nicholas Walker avatar
    30 posts
    Member since:
    Jul 2008

    Posted 26 Jul 2008 Link to this post

    I am trying to do the below:

                <telerik:AjaxSetting AjaxControlID="TreePane" EventName="NodeClick">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="TreePane" />
                        <telerik:AjaxUpdatedControl ControlID="pnlMaintain" LoadingPanelID="apnlMain"  />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="TreePane" EventName="NodeDrop">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="TreePane" />
                    </UpdatedControls>
                </telerik:AjaxSetting>

    So only the NodeClick event of a TreeView control will update the pnlMaintain control.  However, the control is updated no matter what event is executed.  It seems like this should work, but it does not.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 29 Jul 2008 Link to this post

    Hello Nicholas Walker,

    Actually we are aware of this behaviour and it is logged in our bug system. Our developers are working on this issue  and fix should be available in some of the future releases of the product.
    Excuse us for the inconvenience caused

    Sincerely yours,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nicholas Walker
    Nicholas Walker avatar
    30 posts
    Member since:
    Jul 2008

    Posted 29 Jul 2008 Link to this post

    Is there a work around I could put in through code that might help me with this?
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 30 Jul 2008 Link to this post

    Hello Nicholas Walker,

    Currently the only possible solution is to use RadAjaxManger and trigger ajax request no matter of the initiator event. We will continue to work on this problem and will do our best to provide appropriate fix in some of the future releases of the product.

    Best wishes,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Roy
    Roy avatar
    36 posts
    Member since:
    Jun 2008

    Posted 31 May 2009 Link to this post

    I'm using the 2009.1 SP1 ver., and the EventName still doesn't handle the refreshes right.
    any chance it's gonna be fixed, or should i just resort to using ms UpdatePanel?
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 01 Jun 2009 Link to this post

    Hi Roy,

    Unfortunately we still have not found a resolution to this issue. If your application relies on firing ajax request depending on the EventName, I suggest that you use MS UpdatePanel.

    All the best,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Grendizer
    Grendizer avatar
    51 posts
    Member since:
    Sep 2008

    Posted 17 Sep 2009 Link to this post

    Hello guys,

    Is this issue still exists with the last release Q2 2009 SP1

    Thanks

    Seb.
  9. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Sep 2009 Link to this post

    Hi Grendizer,

    We are still not able find a proper fix for the EventName property. However, we will continue reseaching on it.

    All the best,
    Iana
    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.
  10. RRT
    RRT avatar
    8 posts
    Member since:
    Jun 2009

    Posted 06 Oct 2009 Link to this post

    I too am experiencing an issue like this I have:

     

    <telerik:RadAjaxManager runat="server" DefaultLoadingPanelID="radAjaxPanel">

     

     

    <AjaxSettings>

     

     

    <telerik:AjaxSetting AjaxControlID="radtreeFolders" EventName="NodeClick">

     

     

    <UpdatedControls>

     

     

    <telerik:AjaxUpdatedControl ControlID="radGridMail" />

     

     

    </UpdatedControls>

     

     

    </telerik:AjaxSetting>

     

     

    <telerik:AjaxSetting AjaxControlID="radtreeFolders" EventName="ContextMenuItemClick">

     

     

    <UpdatedControls>

     

     

    <telerik:AjaxUpdatedControl ControlID="radtreeFolders" />

     

     

    </UpdatedControls>

     

     

    </telerik:AjaxSetting>

     

     

    </AjaxSettings>

     

     

    </telerik:RadAjaxManager>
    However, both the tree and the grid refresh regardless of what event is fired. Is there any ETA on this? It's really causing issues. I have Q2 2009 SP1 installed.

     

  11. Nicholas Walker
    Nicholas Walker avatar
    30 posts
    Member since:
    Jul 2008

    Posted 06 Oct 2009 Link to this post

    I did figure out a work around for this.  I simply modify the list of updated controls with javascript.  For example I want pnlMaintain to refresh on "NodeClick" and not on "NodeDrop".   Saw a bunch of people having the problem, so I wanted to contribute.

    In Node Click:

        function onTreeViewNodeClicked(sender, eventArgs) {
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            if (ajaxManager != null) {
                var settings = ajaxManager.get_ajaxSettings();
                for (setting in settings) {
                    var initiatingControl = settings[setting].InitControlID;
                    var controls = settings[setting].UpdatedControls;
                    if (initiatingControl == '<%= TreePane.ClientID %>') {
                        for (control in controls) {
                            if (controls[control].ControlID == 'pnlMaintainOff') {
                                controls[control].ControlID = '<%= pnlMaintain.ClientID %>';
                            }
                        }
                    }

                }

                ajaxManager.set_ajaxSettings(settings);
            }
        }

    In Node Drop:

        function onTreeViewNodeDrop(sender, eventArgs) {
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            if (ajaxManager != null) {
                var settings = ajaxManager.get_ajaxSettings();
                for (setting in settings) {
                    var initiatingControl = settings[setting].InitControlID;
                    var controls = settings[setting].UpdatedControls;
                    if (initiatingControl == '<%= TreePane.ClientID %>') {
                        for (control in controls) {
                            if (controls[control].ControlID == '<%= pnlMaintain.ClientID %>') {
                                controls[control].ControlID = 'pnlMaintainOff';
                            }
                        }
                    }

                }

                ajaxManager.set_ajaxSettings(settings);
            }
            
        }
  12. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 07 Oct 2009 Link to this post

    Hi Nicholas,

    Thank you for sharing your experience and solution found with the community. I am sure it would be helpful for anyone facing problems with the EventName property of the ajax settings.

    Greetings,
    Iana
    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.
  13. David
    David avatar
    3 posts
    Member since:
    Sep 2008

    Posted 12 May 2010 Link to this post

    Has this issue ever been addressed? I seem to be having it in the most recent version of controls.
  14. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 May 2010 Link to this post

    Hi David,

    We have not found a resolution for this issue yet. And I am afraid with the current implementation of the RadAjaxManager this could be hardly fixed.

    Greetings,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  15. Seth
    Seth avatar
    66 posts
    Member since:
    Oct 2009

    Posted 17 Jun 2010 Link to this post

    So do you think it might be a good idea to ditch that property to avoid confusion if that property is worthless?
  16. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Jun 2010 Link to this post

    Hi Seth,

    Thank you for your feedback. We will consider your suggestion for next versions of the control.

    Best wishes,
    Iana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  17. Dustin
    Dustin avatar
    79 posts
    Member since:
    Oct 2012

    Posted 18 Oct 2010 Link to this post

    Is this issue being addressed? It has been over two years since this forum was created and there is still no fix? I agree that the EventName property should be removed if you guys don't plan on fixing it. I'm sorry but 2 years and it still hasn't been fixed is pretty bad. The RadAjaxManager is one of yours guys main replacement for the UpdatePanel and a key feature of it (targeting specific events) doesn't work and hasn't ever worked and apparently no priority has been placed on it.
  18. David
    David avatar
    3 posts
    Member since:
    Sep 2008

    Posted 19 Oct 2010 Link to this post

    I completely agree Dustin.

    It's exactly because of this issue we now also use a rival of Telerik's controls.
  19. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 25 Oct 2010 Link to this post

    Hi David,

    We will mark the EventName property as obsolete for the next version of the RadAjax control.
    The issue with it cannot be fixed because due to the RadAjax implementation the update panels wrapped around the updated controls by RadAjax are added too late, after the event with the specified name has finished. Thus the AsyncPostBackTrigger which is listening for the event will never update the page content as the event where the content should be updated has already passed.

    Greetings,
    Iana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  20. Emad
    Emad avatar
    13 posts
    Member since:
    Oct 2011

    Posted 15 Jan 2012 Link to this post

    Hi,

    Is there any update about Ajax Manager EventName property ??

    Regards,
    Emad
  21. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Jan 2012 Link to this post

    Hello,

    Nothing changed since the last statement we provided in regards with the EventName properly, for the reasons shared previously.
    If such functionality is really important for your scenario implementation, you will need to either use ASP:UpdatePanel or manually invoke/handle the ajax requests.

    Greetings,
    Iana Tsolova
    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
  22. AJ
    AJ avatar
    33 posts
    Member since:
    Jun 2011

    Posted 27 Jun 2012 Link to this post

    I spent a good hour trying to figure out what I was going wrong and then stumbled across this thread. Seeing as how this has been an issue for so long, I'm somewhat flabbergasted that Telerik hasn't just removed this property from the Ajax Manager. You guys are normally on top of everything and I love all your tools, but this is just crazy. If it doesn't work and there cannot or will not be a fix... just remove the property.
  23. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Jul 2012 Link to this post

    Hi Andrew,

    We totally understand your concerns however we keep the property in the control for now as a lot of our customers have set it in this markup before and one removal will cause an html validation problem of each application that has the property set.
    Excuse us for any inconvenience this may lead.


    Regards,
    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.
  24. Fredrik
    Fredrik avatar
    6 posts
    Member since:
    Nov 2012

    Posted 28 May 2013 Link to this post

    Same issue here...
    Still not fixed? (doesnt seem to be removed either, spent some time on this also)
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017