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

Radinputmanager not working with Radajaxmanager

7 Answers 159 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
smriti
Top achievements
Rank 1
smriti asked on 02 Sep 2010, 04:00 PM
I am using radinputmanager on my aspx page to validate data type for columns. This works perfect but when i added the following code using RadAjaxmanager the Radinputmanager validations stopped working. Anyone knows how to resolve this?

I am using the code below to show the hour glass when a server request is being processed on the page.

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="massEditGrid">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="massEditGrid"></telerik:AjaxUpdatedControl>

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

<ClientEvents OnRequestStart="showHourGlass" OnResponseEnd="hideHourGlass" />

</telerik:RadAjaxManager> 

 

 

7 Answers, 1 is accepted

Sort by
0
smriti
Top achievements
Rank 1
answered on 02 Sep 2010, 05:06 PM
found a solution. I replaced the RadAjaxManager with the following javascript. Also need to put your control in UpdatePanel

 

function page_Load()  // this is called in <body onload="page_load();">

 

{

Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(showHourGlass);

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(hideHourGlass);

}

 

function showHourGlass(sender, args)

 

{

Sys.UI.DomElement.addCssClass(document.documentElement,

"wait");

 

 

//Sys.UI.DomElement.addCssClass($get("<%= massEditGrid.ClientID %>"), "wait");

 

}

 

 

function hideHourGlass(sender, args)

 

{

Sys.UI.DomElement.removeCssClass(document.documentElement,

"wait");

 

}

0
Accepted
Dimo
Telerik team
answered on 03 Sep 2010, 07:35 AM
Hello smriti,

The following page works as expected with RadInputManager and RadAjaxManager.

http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx?product=input

Greetings,
Dimo
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
smriti
Top achievements
Rank 1
answered on 03 Sep 2010, 04:59 PM
Thanks for the reply. I had to add the highlighted code for both controls to work properly.

<

 

UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="massEditGrid" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadInputManager1"/>

 

 

</UpdatedControls>

 

0
Pete
Top achievements
Rank 1
answered on 11 Mar 2011, 12:30 PM
Hi,

This is old post but I have same the problem and still have even I have added the RadInputManager as updatedcontrol. Have to say that this is my first time when using RadInputManager and I have now struggled 4 hours trying to get it working with RadGrid!

 

<AjaxSettings>
        <rad:AjaxSetting AjaxControlID="rgManageProducts">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="rgManageProducts" />
                <rad:AjaxUpdatedControl ControlID="rimManageProducts" />
            </UpdatedControls>
        </rad:AjaxSetting
    </AjaxSettings>

Regards,

 

 

Pete

 

0
Pete
Top achievements
Rank 1
answered on 11 Mar 2011, 02:40 PM
Hi,

Little update to my post... now two hours more struggling and finally managed to get it working but don't know what I did to fix it :)
So now ajaxified RadInputManager and RadGrid works ALMOST like they should... 

Control validators are working but if I hit like Update (in-place editing in RadGrid) and fields are not valid the grid will still fire the update event. If I remove AjaxManager the again this works like it should.

Pete
0
Maria Ilieva
Telerik team
answered on 16 Mar 2011, 02:46 PM
Hello Pete,

Please note that in order to have Validation works properly with Ajax the validator controls should not be added in the RadAjaxManager settings. If they are please try to remove them and verify of this makes any difference. In some specific cases only if ValidationSummary is used it should be added as Updated Control but I'm not completely sure what is your case exactly.
If this suggestions doesn’t help please suggest opening a regular support ticket and send us sample runnable application which replicates the issue you are facing so we could test it locally and advise you further.


Best wishes,
Maria Ilieva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Maria Ilieva
Telerik team
answered on 16 Mar 2011, 02:46 PM
Hello Pete,

Please note that in order to have Validation works properly with Ajax the validator controls should not be added in the RadAjaxManager settings. If they are please try to remove them and verify of this makes any difference. In some specific cases only if ValidationSummary is used it should be added as Updated Control but I'm not completely sure what is your case exactly.
If this suggestions doesn’t help please suggest opening a regular support ticket and send us sample runnable application which replicates the issue you are facing so we could test it locally and advise you further.


Best wishes,
Maria Ilieva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Ajax
Asked by
smriti
Top achievements
Rank 1
Answers by
smriti
Top achievements
Rank 1
Dimo
Telerik team
Pete
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or