Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > CoverFlow > Setting focus on a CoverFlow template item

Not answered Setting focus on a CoverFlow template item

Feed from this thread
  • Darren Stoppler avatar

    Posted on Oct 12, 2010 (permalink)

    How would you set focus to a textbox that is present in a CoverFlow selected item?

    Thank you.

    Reply

  • George George admin's avatar

    Posted on Oct 18, 2010 (permalink)

    Hello Darren,

    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.

    Sincerely yours,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Darren Stoppler avatar

    Posted on Oct 19, 2010 (permalink)

    Thanks George

    Reply

  • Darren Stoppler avatar

    Posted on Oct 20, 2010 (permalink)

    Hi George,

    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

    Reply

  • George George admin's avatar

    Posted on Oct 26, 2010 (permalink)

    Hello Darren,

    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.

    Sincerely yours,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Darren Stoppler avatar

    Posted on Nov 4, 2010 (permalink)

    Thanks George

    Reply

  • Pavan avatar

    Posted on Jan 20, 2012 (permalink)

    hi,

      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 

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > CoverFlow > Setting focus on a CoverFlow template item
Related resources for "Setting focus on a CoverFlow template item"

Silverlight CoverFlow Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]