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

Ajax Manager Event Filter

22 Answers 414 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nicholas Walker
Top achievements
Rank 1
Nicholas Walker asked on 27 Jul 2008, 03:07 AM
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.

22 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Jul 2008, 10:42 AM
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.
0
Nicholas Walker
Top achievements
Rank 1
answered on 29 Jul 2008, 12:29 PM
Is there a work around I could put in through code that might help me with this?
0
Maria Ilieva
Telerik team
answered on 30 Jul 2008, 06:31 AM
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.
0
Roy
Top achievements
Rank 1
answered on 31 May 2009, 07:39 AM
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?
0
Iana Tsolova
Telerik team
answered on 01 Jun 2009, 09:29 AM
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.
0
Grendizer
Top achievements
Rank 1
answered on 17 Sep 2009, 09:53 AM
Hello guys,

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

Thanks

Seb.
0
Iana Tsolova
Telerik team
answered on 18 Sep 2009, 12:49 PM
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.
0
RRT
Top achievements
Rank 1
answered on 06 Oct 2009, 01:40 PM
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.

 

0
Nicholas Walker
Top achievements
Rank 1
answered on 06 Oct 2009, 01:59 PM
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);
        }
        
    }
0
Iana Tsolova
Telerik team
answered on 07 Oct 2009, 09:39 AM
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.
0
David
Top achievements
Rank 1
answered on 12 May 2010, 04:16 PM
Has this issue ever been addressed? I seem to be having it in the most recent version of controls.
0
Iana Tsolova
Telerik team
answered on 13 May 2010, 12:39 PM
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.
0
Seth
Top achievements
Rank 1
answered on 17 Jun 2010, 09:36 PM
So do you think it might be a good idea to ditch that property to avoid confusion if that property is worthless?
0
Iana Tsolova
Telerik team
answered on 18 Jun 2010, 09:05 AM
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
0
Dustin
Top achievements
Rank 1
answered on 18 Oct 2010, 09:47 PM
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.
0
David
Top achievements
Rank 1
answered on 19 Oct 2010, 08:25 AM
I completely agree Dustin.

It's exactly because of this issue we now also use a rival of Telerik's controls.
0
Iana Tsolova
Telerik team
answered on 25 Oct 2010, 01:38 PM
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
0
Emad
Top achievements
Rank 1
answered on 15 Jan 2012, 12:54 PM
Hi,

Is there any update about Ajax Manager EventName property ??

Regards,
Emad
0
Iana Tsolova
Telerik team
answered on 16 Jan 2012, 10:50 AM
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
0
AJ
Top achievements
Rank 2
answered on 27 Jun 2012, 01:48 PM
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.
0
Maria Ilieva
Telerik team
answered on 02 Jul 2012, 10:26 AM
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.
0
Fredrik
Top achievements
Rank 2
answered on 28 May 2013, 06:58 PM
Same issue here...
Still not fixed? (doesnt seem to be removed either, spent some time on this also)
Tags
Ajax
Asked by
Nicholas Walker
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Nicholas Walker
Top achievements
Rank 1
Roy
Top achievements
Rank 1
Iana Tsolova
Telerik team
Grendizer
Top achievements
Rank 1
RRT
Top achievements
Rank 1
David
Top achievements
Rank 1
Seth
Top achievements
Rank 1
Dustin
Top achievements
Rank 1
Emad
Top achievements
Rank 1
AJ
Top achievements
Rank 2
Fredrik
Top achievements
Rank 2
Share this question
or