How do I get a form by language programmatically?

Posted by Community Admin on 03-Aug-2018 05:29

How do I get a form by language programmatically?

All Replies

Posted by Community Admin on 18-Mar-2011 00:00

I am getting a form using 'manager.GetFormByName("sf_testform")'. Is there a way to get a form for a specific culture? I am trying to read form control labels for another language.

Posted by Community Admin on 18-Mar-2011 00:00

Hello Basem,

The object is one no matter how many languages you have. The object has Lstring properties that are localizable and if you want to get the data for a specific culture you need to get the FormDescription and then call AvailableLanguages. Another option is setting the CurrentUICulture and call GetForms() method and in the Where clause you check whether the Title is null or not.

Greetings,
Ivan Dimitrov
the Telerik team

This thread is closed