This is a migrated thread and some comments may be shown as answers.

RadConfirm Right to Left Support

6 Answers 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
Asa'ad
Top achievements
Rank 1
Asa'ad asked on 17 Feb 2013, 11:57 AM
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

6 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Feb 2013, 11:47 AM
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.
0
Asa'ad
Top achievements
Rank 1
answered on 20 Feb 2013, 06:49 AM
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...
0
Marin Bratanov
Telerik team
answered on 20 Feb 2013, 03:55 PM
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.
0
Asa'ad
Top achievements
Rank 1
answered on 21 Feb 2013, 10:11 AM
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....


0
Asa'ad
Top achievements
Rank 1
answered on 24 Feb 2013, 06:25 AM
any help please...

asaad...
0
Marin Bratanov
Telerik team
answered on 25 Feb 2013, 12:22 PM
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.
Tags
Window
Asked by
Asa'ad
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Asa'ad
Top achievements
Rank 1
Share this question
or