RadConfirm Right to Left Support

7 posts, 0 answers
  1. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 17 Feb 2013 Link to this post

    Hi all,

    i need to change the RadConfirm window contect and header direction from code behinde according to flag value?

    if flag ==1 this means ltr
    if flag ==2 thism means rtl

    i don't know how to do that?
    please help
    asaad
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 19 Feb 2013 Link to this post

    Hi Asaad,

    All RadWIndows will automatically switch to RTL mode if the page is properly configured for this (i.e. at least the form element has the proper direction set), as explained here. This means that the dialog will match the page and cannot be explicitly controlled through code, because there is much more going on behind the scenes during rendering.


    Greetings,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 20 Feb 2013 Link to this post

    Thank you marin for your comment BUT i am talking about the RADConfirm predified dialog!!!!

    Through my code behind i use the RadWindowManager to call RadConfirm method and so the rad confirm is called...

    i need to change this radconfirm title direction and text direction and buttons(ok and cancel) directions wuther to be
    rtl or ltr according to flag value.

    in the documentation they are talking about the templates!!!!

    can you please help...

    best regards
    asaad...
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 20 Feb 2013 Link to this post

    Hello Asaad,

    The RadConfirm is still a RadWindow and the principles I explained apply to it as well in full force. If your page is configured to show RTL RadWindows the RadConfirm will be no exception, but this cannot be controlled with a simple flag/property. The help article I linked shows the requirement for a RTL RadWindow dialog - namely setting the direction: rtl property in the page.


    Kind regards,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 21 Feb 2013 Link to this post

    hi marin,,

    i tried you suggestion, the rad confirm change direction

    but i need to set this html direction rtl or ltr according to condition in the code behind of the page?

    how to do that?


    thanks

    asaad....


  7. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 24 Feb 2013 Link to this post

    any help please...

    asaad...
  8. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 Feb 2013 Link to this post

    Hello Asaad,

    I already explained several times that the RTL mode of the RadAlert cannot be toggled with a simple property or flag and that it inherits the page's direction configuration.

    The closest alternative I can suggest is declaring a second manager and modifying the template of the dialog to match your needs, then use that manager to call the RTL dialog as you have designed it.


    Kind regards,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017