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

[Solved] Dynamicly created Grid stop Ajax for GridTemplateColumn

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 20 May 2009, 05:32 PM
Hello,

I've created a dynamically created grid (all in the code behind) with all Grid postbacks of Ajax type (using AjaxManager).
In my grid I have a column of type GridTemplateColumn which contains an Imagebutton.
I would like to perform regular PostBacks (No Ajax)  when the ImageButton is created.
I've searched the forum but couldn't come up with an example that worked for me as I couldn't stop the Ajax behaviour of the templateColumn.

Any ideas?

Regards,
Tzach.

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 25 May 2009, 11:36 AM
Hi Tzach,

In order to disable ajax when the ImageButton is clicked, you can handler the RadAJaxManager OnRequestStart client-side event as described in point 2) of this help topic.

Additionally, you can try this online demo which resembles your scenario.

Check it out and let me know if this helps.

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
Covertix
Top achievements
Rank 1
answered on 25 May 2009, 11:53 AM
Hi Iana,

I've already tried to disable Ajax for imagebutton using OnRequestStart, but for some reason, the Javascript that I've specified for OnRequestStart never executed.
I was able to solve my issue by using a GridButtonColumn instead of a GridTemplateColumn, and hook a javascript function to it's onClientClick by using ItemDataBound event.

Thanks,
Tzach.

Tags
Grid
Asked by
Covertix
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Covertix
Top achievements
Rank 1
Share this question
or