Localizing Rad Window

8 posts, 2 answers
  1. Akhil Raj
    Akhil Raj avatar
    69 posts
    Member since:
    Aug 2012

    Posted 14 Sep 2011 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 14 Sep 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Akhil Raj
    Akhil Raj avatar
    69 posts
    Member since:
    Aug 2012

    Posted 15 Sep 2011 Link to this post

    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
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Sep 2011 Link to this post

    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.
  6. Akhil Raj
    Akhil Raj avatar
    69 posts
    Member since:
    Aug 2012

    Posted 15 Sep 2011 Link to this post

    k thanks. Company already bought Q2 2011. I will check with that and will update
  7. Akhil Raj
    Akhil Raj avatar
    69 posts
    Member since:
    Aug 2012

    Posted 15 Sep 2011 Link to this post

    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
  8. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 16 Sep 2011 Link to this post

    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
  9. Akhil Raj
    Akhil Raj avatar
    69 posts
    Member since:
    Aug 2012

    Posted 16 Sep 2011 Link to this post

    thanks admin
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017