Hi Telerik,
I find limited resources on the Gallery, as far as the client object is concerned and trying to get information out of it. In otherwords, finding the text, description, etc of the currently selected image. I cant seem to get this information from the argument in the OnNavigated function. If you have documentation on it please lead me to it.
Ok, I want the OnNavigated to update other controls on the screen once that image is selected. I have textboxes and a check box that should update after the image is chosen to view. The server event - Image requested gets hit only the first time around. So i need this event to update other controls on the screen.
JS function
I obviously want the 4 objects to be updated when the next/previous/other image is selected. Not the hard coded values you see. Maybe the key names have values in the js side? Like other controls, but client datakey is used. I dont see any help on the matter.
Can you guys/girls lead me in the right direction?
Thanks a bunch!
I find limited resources on the Gallery, as far as the client object is concerned and trying to get information out of it. In otherwords, finding the text, description, etc of the currently selected image. I cant seem to get this information from the argument in the OnNavigated function. If you have documentation on it please lead me to it.
Ok, I want the OnNavigated to update other controls on the screen once that image is selected. I have textboxes and a check box that should update after the image is chosen to view. The server event - Image requested gets hit only the first time around. So i need this event to update other controls on the screen.
<
telerik:RadImageGallery
ID
=
"ImageGallery1"
DataKeyNames
=
"MemberImageId, IsPrimary, Name, Description"
runat
=
"server"
Height
=
"400px"
LoopItems
=
"true"
Skin
=
"Web20"
>
<
ThumbnailsAreaSettings
ThumbnailsSpacing
=
"5px"
/>
<
ClientSettings
>
<
ClientEvents
OnNavigated
=
"OnNavigated"
/>
</
ClientSettings
>
<
ImageAreaSettings
ShowDescriptionBox
=
"false"
/>
</
telerik:RadImageGallery
>
JS function
function OnNavigated(sender, args) {
$find('<%=RadTextBoxMemberImageId.ClientID%>').set_value('1');
$find('<%=RadTextBoxDescription.ClientID%>').set_value('Try Desc');
$find('<%=RadButtonPrimary.ClientID%>').set_checked(false);
$find('<%=RadTextBoxName.ClientID%>').set_value('Try Name');
}
I obviously want the 4 objects to be updated when the next/previous/other image is selected. Not the hard coded values you see. Maybe the key names have values in the js side? Like other controls, but client datakey is used. I dont see any help on the matter.
Can you guys/girls lead me in the right direction?
Thanks a bunch!