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

ajax/javascript postback to codebehind from radlistview

2 Answers 151 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Magnus
Top achievements
Rank 2
Magnus asked on 23 May 2011, 07:23 PM

Hi I have a radlistview that gets random items from the database, each item has two buttons inside add to wishlist, add to cart.
I wanna do a clientside event to a javascript that triggers an event in codebehind without
reloading the webpage. Each button has two arguments that needs to be posted
back to a code behind event.

I cant use ajaxpanel for the radlistview considering it's getting random items, it wont work because the id value of the index wont be the same after postback. didnt even work when I put the buttons directly inside a radajaxpanel.

What I would like to know what is the best way in with RadControls to do this with javascript AJAX event...

A working sample would be appreciated because I have searched all over the web and in teleriks vast resources but havent been
able to find something that works nor figure it out on my own. this will also trigger a external
ajaxpanel to reload and show the result of the button clicked but thats an easy fix when the rest is solved.

Thanks,

2 Answers, 1 is accepted

Sort by
0
Magnus
Top achievements
Rank 2
answered on 24 May 2011, 01:48 PM
bump...something happend to my post all the text disappered when I edited it...
0
Maria Ilieva
Telerik team
answered on 26 May 2011, 01:52 PM
Hi Magnus ,

I would suggest you to review the following online resources which should help on this matter:
http://www.telerik.com/help/aspnet-ajax/ajax-onajaxrequest.html
http://www.telerik.com/help/aspnet-ajax/ajax-pass-more-arguments.html
http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxrequest-to-client-event.html

Greetings,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Ajax
Asked by
Magnus
Top achievements
Rank 2
Answers by
Magnus
Top achievements
Rank 2
Maria Ilieva
Telerik team
Share this question
or