We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Group text translation

Hello,

Is it posible to get the ribbon's groups text? I need to get the text in order to translate it.

Thank you in advance

3 Replies

KN Kavitha Narayanan Syncfusion Team February 17, 2016 09:36 AM UTC

Hi Antonio,

Thanks for contacting Syncfusion support.

Query: Is it possible to get the ribbon's groups text? I need to get the text in order to translate it.

Yes, we can get the ribbon groups text using Create event with the help of below code.

[Code]

<div id="defaultRibbon"></div>
<script>

$(function () {

            $("#defaultRibbon").ejRibbon({

                width: "100%",

                tabs: [{

                    id: "home", text: "HOME", groups: [{

                        text: "New", //text name of group


                   alignType: ej.Ribbon.alignType.rows, content: [{

                            groups: [{

                                id: "new",

                                toolTip: "New"

                            }

                            ]

                        }]

                    }]

                } ],

                create:"createControl" // Create event

            });

        });

   function createControl(args) {

                                  var groupText=args.model.tabs[0].groups[0].text;// Get group text here

                                  alert(groupText);
        }
  </script>

Please refer to the sample below.

Sample: http://www.syncfusion.com/downloads/support/forum/122088/ze/sample1861386955.zip

If the above does not solve your issue, please share your scenario to the ribbon groups text. This would help us to solve the issue.

Regards,
Kavitha N.



UN Unknown Syncfusion Team February 17, 2016 01:56 PM UTC

Got it!

Thank you


KN Kavitha Narayanan Syncfusion Team February 18, 2016 04:09 AM UTC


Hi Antonio,


Thanks for the update.

Please get back to us if you need any further assistance.

Regards,
kavitha N.


Loader.
Live Chat Icon For mobile
Up arrow icon