Thank you.
6 Answers, 1 is accepted
I would suggest you to get the SelectedItem of the RadCoverFlow control. Then, you could find the textbox, placed in the item template using ChildrenOfType<TextBox>, and set the Focus on the textbox.
I hope this helps.
George
the Telerik team
I can only get reference to the coverflow data object rather than the template. How would I access the actual item template through the selected item?
Thanks
Sorry for this misunderstanding. Unfortunately, setting the focus to the TextBox is not as easy as I thought .
I would suggest you to add an Id (or Index) property of your ViewModel. Also, you could add an attached property to the textbox and bind it to the SelectedIndex of the RadCoverFlow. Then, you could check whether the Id is equal to the SelectedIndex or not, in order to set focus to the textbox.
Attached you can find the sample. I hope this helps. Please do not hesitate to contact us if you require any further information.
George
the Telerik team
Thanks very much for giving such excellenct example for rad cov er flow, i helped link from you is http://www.telerik.com/community/forums/silverlight/coverflow/setting-focus-on-a-coverflow-template-item.aspx
with this i can able to archive the task, but for setting the textbox focus the first cover page on load, i am facing problems . kindly help me with the code how to show focus for text box on load ok the cover index.
thanks in advanced