Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3550
How to set focus on chart
posted
I have a button and an empty chart. On button click, I want to set focus on the chart. The following code doesnt work. protected void Button1_Click(object sender, EventArgs e) { UltraChart1.Focus(); }
Parents
No Data
Reply
  • 13438
    posted

    Hello drPolarim,

    Thank you for posting in our community.  This method is derived from the control class and is ment to be invoked when you want to set input focus. The Chart control is rendered as an image and is not input control. Please also take a look at the attached sample. If an image does not have tabIndex (our chart does not put such by default so you will have to inject it with jQuery) it could not fire its focus event (in the sample I have tested with ordinary <img>). Please modify your logic to use a html button in which to set the focus on the client for example.
    Please let me know if you need further assistance.

    UWC_focus.zip
Children