Settings (change the default settings of the controls)
you can change the default settings of the controls by calling something like this:
Settings.AjaxList.MoreText = "show more results"; Settings.Lookup.OkText = "Choose"; Settings.Lookup.ClearButton = true; Settings.MultiLookup.Fullscreen = true;
usually you would call this in Global.asax.cs Application_Start
Translating default texts
A function can be assigned to Settings.GetText, this function will receive 2 parameters (name of the control, and key of the text) and must return a string, this way you can return a different text depending on current UI culture:
Settings.GetText = (n, k) =>
{
if (k == "CancelText") return "Cancel";
if (k == "SearchText") return "Search";
if (k == "MoreText") return "More results";
if (n == "MultiLookup" && k == "Title")
return "please select some items";
if (n == "Lookup" && k == "Title")
return "please select an item";
return "";
};
