1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How do I get a form by language programmatically?

How do I get a form by language programmatically?

2 posts, 1 answered
  1. Basem
    Basem avatar
    131 posts
    Registered:
    22 Dec 2010
    18 Mar 2011
    Link to this post
    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.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    18 Mar 2011
    Link to this post
    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
    Answered
2 posts, 1 answered