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

Localizing Rad Window

7 Answers 86 Views
Window
This is a migrated thread and some comments may be shown as answers.
Akhil Raj
Top achievements
Rank 1
Akhil Raj asked on 14 Sep 2011, 05:05 AM
hi all,
  I am using RadAlert for sisplaying messages to users. Project is multilingual and i can show localised message in the radalert byt passing localised message as parameters to the function. But any possibility to show the buttons like 'OK', 'CANCEL', YES' etc in localized language?

I read some article specifying 'language' property in the RAdWindowManager but i didnt found in my control. I am using Q3 2010. any possibility in Q1 2011? because i am going to use this latest version for next project

7 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Sep 2011, 12:48 PM
Hello Akhil,

The RadWindow is fully localizable and there are several method to do it. They are shown in this help article and you can see one in action in this online demo. You can find the code of the demo in your local RadControls installation under the LiveDemos folder so you can examine and modify it as needed.

Please note that the RadAlert is actually a RadWindow, and this is the reason there is an OK localizable string - for the predefined dialogs' buttons.


Best wishes,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
0
Akhil Raj
Top achievements
Rank 1
answered on 15 Sep 2011, 06:58 AM
thanks admin, But can you clarify that the the supported version. Because in my version the following error shown
Type 'Telerik.Web.UI.RadWindowManager' does not have a public property named 'Localization'
I am using Q3 2009
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Sep 2011, 07:42 AM
Hello Akhil,

RadWindow added new localization mechanism for RadWindow and RadWindowManager.It is supported from version Q2 2010 (version 2010.2.713)  onwards. So try upgrading to to the latest version with the help of the following documentation.
Upgrading RadControls Trial to RadControls Developer license or newer version

Thanks,
Princy.
0
Akhil Raj
Top achievements
Rank 1
answered on 15 Sep 2011, 09:01 AM
k thanks. Company already bought Q2 2011. I will check with that and will update
0
Akhil Raj
Top achievements
Rank 1
answered on 16 Sep 2011, 04:37 AM
hi friends. Its working fine now..
But i have one more question. I need to restrict the movement of RadAlert window. Because when i show alert box, the user can move the window to anywhere so that scroll bar will appear in the page after move to the last
0
Accepted
Marin Bratanov
Telerik team
answered on 16 Sep 2011, 09:51 AM
Hi Akhil,

I am glad to hear that you have resolved your original issue. I would like to ask that in the future you post new issues in separate threads, as this way it is easier to track them, instead of flooding one topic with different subjects.

As for a non-movable RadAlert - this feature is not offered out of the box (actually we made the RadAlert movable less than a year ago). What you can do is modify its Behaviors collection when it is shown, as it is actually a RadWindow and is client-side API is still applicable. For example:
<telerik:RadWindowManager runat="server" ID="RadWindowManager1"></telerik:RadWindowManager>
<asp:Button ID="Button1" Text="call radalert" OnClientClick="callRadAlert(); return false;" runat="server" />
<script type="text/javascript">
    function callRadAlert()
    {
        var oAlert = radalert("warning!");
        oAlert.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);
    }
</script>

so that the user can only close it via the [x] button or the ok button. You can set the behaviors to None if you wish only the OK button to be available.

Kind regards,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
0
Akhil Raj
Top achievements
Rank 1
answered on 17 Sep 2011, 04:39 AM
thanks admin
Tags
Window
Asked by
Akhil Raj
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Akhil Raj
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or