Focus to OK button in rad alert

5 posts, 0 answers
  1. Bharathwajan Venkatanarayanan
    Bharathwajan Venkatanarayanan avatar
    25 posts
    Member since:
    Aug 2009

    Posted 23 Oct 2009 Link to this post

    Hi,

    We are generating the radalert from the server side code.As per our requirement we want ok button in the alert window to be focused by default.Please provide the solution.Right now OK is not getting focused.

    Regards,
    Bharath
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 26 Oct 2009 Link to this post

    Hi Bharath,

    Are you referring to the same issue as in your other forum post? If so, I have already answered in it what is the problem with the navigation not working after clicking OK. The focus however is working as expected - this can be seen in the video that I attached in the other forum post.


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Bharathwajan Venkatanarayanan
    Bharathwajan Venkatanarayanan avatar
    25 posts
    Member since:
    Aug 2009

    Posted 26 Oct 2009 Link to this post

    Hi
    We are generating the radalert window from serverside code. Focus comes to the ok button when we are using a plain asp.net page. But when used along with a master page, focus is not coming to the ok button. Please tell us the solution.
    regards
    Bharath
  4. Bharathwajan Venkatanarayanan
    Bharathwajan Venkatanarayanan avatar
    25 posts
    Member since:
    Aug 2009

    Posted 27 Oct 2009 Link to this post

    hi
    we tried applying the style from server side like this.

     

    this.Page.Header.Attributes.Add("test", ".RadWindow .radalert A { position:absolute;left:42%;cursor:pointer;}");

    look and feel of the focus is different and cursor is not turning to hand when placed on the ok button.

     

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Oct 2009 Link to this post

    Hello Bharath,

    If you want to change the look of the dialog and add your custom style for cursor, etc., you should modify the content template in the RadWindowManager as shown in the documentation (section Controls / RadWindow / Predefined Dialogs /Changing the Dialog Templates.



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top