Hi,
this is my scenario
i use radrotator to make an image gallery like this one on your demo
http://demos.telerik.com/aspnet-ajax/rotator/examples/gallery/defaultcs.aspx
in the thumbnail in the bottom, i add radtooltips for some action like delete the photo
when i pass over the photo, the tooltip show and if i click on the linkbutton (delete this photo) i want to show a radconfirm dialog (do you realy want to delete this photo ?)
if yes then i delete the photo.
all of this is working good but the rotator not refresh. i try databind and its not working
i put un refresh button in that page but not ajaxified, the only thing this button do is in the code behin, rotator.databind.
how can i refresh the rotator like the refresh button ?
thanks !
Eric
this is my scenario
i use radrotator to make an image gallery like this one on your demo
http://demos.telerik.com/aspnet-ajax/rotator/examples/gallery/defaultcs.aspx
in the thumbnail in the bottom, i add radtooltips for some action like delete the photo
when i pass over the photo, the tooltip show and if i click on the linkbutton (delete this photo) i want to show a radconfirm dialog (do you realy want to delete this photo ?)
if yes then i delete the photo.
all of this is working good but the rotator not refresh. i try databind and its not working
i put un refresh button in that page but not ajaxified, the only thing this button do is in the code behin, rotator.databind.
how can i refresh the rotator like the refresh button ?
thanks !
Eric
5 Answers, 1 is accepted
0
Accepted
SamJ
Top achievements
Rank 1
answered on 03 Sep 2009, 05:47 AM
Hi,
Can you send us your aspx page code with javascript if so?
You can try adding an ajax setting where the ajax manager updates the rotator and see if it makes any difference.
Regards,
SamJ
Can you send us your aspx page code with javascript if so?
You can try adding an ajax setting where the ajax manager updates the rotator and see if it makes any difference.
Regards,
SamJ
0
Eric
Top achievements
Rank 1
answered on 03 Sep 2009, 12:59 PM
hi SamJ,
i put the rotator in the update control and the databind work now.
Thanks a lot !
Eric
i put the rotator in the update control and the databind work now.
Thanks a lot !
Eric
0
Sergei
Top achievements
Rank 1
answered on 19 Jul 2011, 03:51 AM
Hello,
I'm having the same problem at the moment.
I use image gallery example as a base.
In my case I use telerik and devexpress components together.
I have a button (made from image and link). When you click it and confirm deletion, it then performs devexpress callback with ID of a profile to delete.
On the server side, in callback function I have the following:
The profile is deleted successfully, but rotator is not refreshed.
Additionally, rotator is placed into RadAjaxPanel and I have the following AJAX settings for RadAjaxManager:
I hope I provided enough information.
I think the problem is that I use DevExpress callback. In such case could you give me an example with rotator's data binding and refreshing.
Thank you in advance for your help,
Sergei
I'm having the same problem at the moment.
I use image gallery example as a base.
In my case I use telerik and devexpress components together.
I have a button (made from image and link). When you click it and confirm deletion, it then performs devexpress callback with ID of a profile to delete.
<
a
href
=
"javascript:buttonDeleteClicked();"
runat
=
"server"
id
=
"btnDeleteProfile"
>
<
img
style
=
"border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none"
height
=
"20"
alt
=
""
src
=
"App_Themes/Default/Images/deleteBtn.gif"
width
=
"44"
/></
a
>
function
confirmCallBackFn(arg) {
if
(arg) {
var
id = HiddenField.Get(
'ProfileId'
);
if
(id > 0) {
callback1.PerformCallback(
'delete:'
+ id);
}
}
}
function
buttonDeleteClicked() {
radconfirm(
'Do you want to delete this profile?'
, confirmCallBackFn, 300, 100,
null
,
'Confirm Profile Deletion'
);
}
On the server side, in callback function I have the following:
protected
void
ASPxCallback1_Callback(
object
source, DevExpress.Web.ASPxCallback.CallbackEventArgs e)
{
// delete the profile from database
thumbRotator.DataBind();
}
Additionally, rotator is placed into RadAjaxPanel and I have the following AJAX settings for RadAjaxManager:
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnDeleteProfile"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"thumbRotator"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
I think the problem is that I use DevExpress callback. In such case could you give me an example with rotator's data binding and refreshing.
Thank you in advance for your help,
Sergei
0
Hello Sergei,
I would suggest that you use only one ajax cotnrols on the page. Or at least use only one of them to ajaxify the same page content. Try making the ajax request through the RadAjaxManager and see if it works thus.
Best wishes,
Iana
the Telerik team
I would suggest that you use only one ajax cotnrols on the page. Or at least use only one of them to ajaxify the same page content. Try making the ajax request through the RadAjaxManager and see if it works thus.
Best wishes,
Iana
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
Sergei
Top achievements
Rank 1
answered on 25 Jul 2011, 12:55 AM
Hello Telerik team,
Yes, that works.
I used RadAjaxManager's AjaxRequest.
Thank you for your help.
Best regards,
Sergei
Yes, that works.
I used RadAjaxManager's AjaxRequest.
Thank you for your help.
Best regards,
Sergei