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

Ajaxify Grid with Ajax Manger

5 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Feizal Amlani
Top achievements
Rank 1
Feizal Amlani asked on 14 Jul 2008, 10:04 PM
Hello,

I have a grid and have ajax it using the Manager as the grid needs to update other controls on the page.  In the header of the grid using a Template Column I have a link which posts back and fires the ItemCommand.

Everything works fine on the first async call.  Ajax works great.  However, any subsequent call the entire page posts back.  I have tried to put the manager in the mark-up as well as on PageLoad in setting its properties but to no avail.

<

rada:RadAjaxManager id="cntrlAjaxManager" runat="server">

<AjaxSettings>

<rada:AjaxSetting AjaxControlID="divTestCodeContainer">

<UpdatedControls>

<rada:AjaxUpdatedControl ControlID="divTestCodeContainer" />

</UpdatedControls>

</rada:AjaxSetting>

</AjaxSettings>

</

rada:RadAjaxManager>

The "divTestCodeContainer" contains the Grid and all other controls.

Any help would be appreciated.
Thanks,
Feizal

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jul 2008, 05:05 AM
Hi,

Please check whether the ControlID matches completely with the correspondant Ajax settings. You can also refer the following help article.
Ajaxified control still postbacks

Thanks
Shinu.
0
Feizal Amlani
Top achievements
Rank 1
answered on 15 Jul 2008, 06:49 PM
Hello,

I have done some more research on this and everything is configured correctly with the manager.

I have a link button that calls a client side function first and then calls the server side code.  The first time the link button behaves as expected.  Async call.  After that it postbacks.

If I remove the call to the client side function the link button is ajaxed and everything works great all the time. 

Also, if I replace the link button with a button everything works as expected.  I am puzzled why the button works but not the link button with the identical code.

Thanks,
Feizal
0
Maria Ilieva
Telerik team
answered on 17 Jul 2008, 08:16 AM
Hello Feizal Amlani,

Could you please test your application by wrapping the whole "divTestCodeContainer"  into asp UpdatePanel. Test this scenario and let us know if the problem still persists.

Greetings,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Feizal Amlani
Top achievements
Rank 1
answered on 17 Jul 2008, 01:29 PM
Maria,

It is an enterprise application and we have dedicated to using only Telerik controls.  We are not using any Microsoft Ajax components.  Therefore, the UpdatePanel cannot be used.

Is there any other options?

Feizal
0
Maria Ilieva
Telerik team
answered on 17 Jul 2008, 01:36 PM
Hi Feizal Amlani,

My previous suggestion was only to isolate the problem partially and to verify if its root is in the RadAjax Settings.
Will it be convenient for you to open a regular support ticket and send us sample runnable project, which replicates the problem. We will test it locally and advise you further.

Best wishes,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Feizal Amlani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Feizal Amlani
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or