winform Telerik raggridview 过滤条件 以及过滤中的这些文本如何设置成中文
如图一和如图2 搜索的地方和过滤的条件我如何设置成中文的 比如equels 让它显示成"相等" not filter 让它显示成"不过滤" telerik
[解决办法]
新建一个类:
public class MyRadGridLocalizationProvider : RadGridLocalizationProvider
{
public override string GetLocalizedString(string id)
{
switch (id) {
case RadGridStringId.FilterFunctionBetween: return "Between";
case RadGridStringId.FilterFunctionContains: return "Contains";
case RadGridStringId.FilterFunctionDoesNotContain: return "Does not contain";
case RadGridStringId.FilterFunctionEndsWith: return "Ends with";
case RadGridStringId.FilterFunctionEqualTo: return "相等";
case RadGridStringId.FilterFunctionGreaterThan: return "Greater than";
case RadGridStringId.FilterFunctionGreaterThanOrEqualTo: return "Greater than or equal to";
case RadGridStringId.FilterFunctionIsEmpty: return "Is empty";
case RadGridStringId.FilterFunctionIsNull: return "Is null";
case RadGridStringId.FilterFunctionLessThan: return "Less than";
case RadGridStringId.FilterFunctionLessThanOrEqualTo: return "Less than or equal to";
case RadGridStringId.FilterFunctionNoFilter: return "No filter";
case RadGridStringId.FilterFunctionNotBetween: return "Not between";
case RadGridStringId.FilterFunctionNotEqualTo: return "Not equal to";
case RadGridStringId.FilterFunctionNotIsEmpty: return "Is not empty";
case RadGridStringId.FilterFunctionNotIsNull: return "Is not null";
case RadGridStringId.FilterFunctionStartsWith: return "Starts with";
case RadGridStringId.FilterFunctionCustom: return "Custom";
case RadGridStringId.FilterOperatorBetween: return "Between";
case RadGridStringId.FilterOperatorContains: return "Contains";
case RadGridStringId.FilterOperatorDoesNotContain: return "NotContains";
case RadGridStringId.FilterOperatorEndsWith: return "EndsWith";
case RadGridStringId.FilterOperatorEqualTo: return "Equals";
case RadGridStringId.FilterOperatorGreaterThan: return "GreaterThan";
case RadGridStringId.FilterOperatorGreaterThanOrEqualTo: return "GreaterThanOrEquals";
case RadGridStringId.FilterOperatorIsEmpty: return "IsEmpty";
case RadGridStringId.FilterOperatorIsNull: return "IsNull";
case RadGridStringId.FilterOperatorLessThan: return "LessThan";
case RadGridStringId.FilterOperatorLessThanOrEqualTo: return "LessThanOrEquals";
case RadGridStringId.FilterOperatorNoFilter: return "No filter";
case RadGridStringId.FilterOperatorNotBetween: return "NotBetween";
case RadGridStringId.FilterOperatorNotEqualTo: return "NotEquals";
case RadGridStringId.FilterOperatorNotIsEmpty: return "NotEmpty";
case RadGridStringId.FilterOperatorNotIsNull: return "NotNull";
case RadGridStringId.FilterOperatorStartsWith: return "StartsWith";
case RadGridStringId.FilterOperatorIsLike: return "Like";
case RadGridStringId.FilterOperatorNotIsLike: return "NotLike";
case RadGridStringId.FilterOperatorIsContainedIn: return "ContainedIn";
case RadGridStringId.FilterOperatorNotIsContainedIn: return "NotContainedIn";
case RadGridStringId.FilterOperatorCustom: return "Custom";
case RadGridStringId.CustomFilterMenuItem: return "Custom";
case RadGridStringId.CustomFilterDialogCaption: return "RadGridView Filter Dialog [{0}]";
case RadGridStringId.CustomFilterDialogLabel: return "Show rows where:";
case RadGridStringId.CustomFilterDialogRbAnd: return "And";
case RadGridStringId.CustomFilterDialogRbOr: return "Or";
case RadGridStringId.CustomFilterDialogBtnOk: return "OK";
case RadGridStringId.CustomFilterDialogBtnCancel: return "Cancel";
case RadGridStringId.CustomFilterDialogCheckBoxNot: return "Not";
case RadGridStringId.CustomFilterDialogTrue: return "True";
case RadGridStringId.CustomFilterDialogFalse: return "False";
case RadGridStringId.FilterMenuAvailableFilters: return "Available Filters";
case RadGridStringId.FilterMenuSearchBoxText: return "Search...";
case RadGridStringId.FilterMenuClearFilters: return "Clear Filter";
case RadGridStringId.FilterMenuButtonOK: return "OK";
case RadGridStringId.FilterMenuButtonCancel: return "Cancel";
case RadGridStringId.FilterMenuSelectionAll: return "All";
case RadGridStringId.FilterMenuSelectionAllSearched: return "All Search Result";
case RadGridStringId.FilterMenuSelectionNull: return "Null";
case RadGridStringId.FilterMenuSelectionNotNull: return "Not Null";
case RadGridStringId.FilterFunctionSelectedDates: return "Filter by specific dates:";
case RadGridStringId.FilterFunctionToday: return "Today";
case RadGridStringId.FilterFunctionYesterday: return "Yesterday";
case RadGridStringId.FilterFunctionDuringLast7days: return "During last 7 days";
case RadGridStringId.FilterLogicalOperatorAnd: return "AND";
case RadGridStringId.FilterLogicalOperatorOr: return "OR";
case RadGridStringId.FilterCompositeNotOperator: return "NOT";
case RadGridStringId.DeleteRowMenuItem: return "Delete Row";
case RadGridStringId.SortAscendingMenuItem: return "Sort Ascending";
case RadGridStringId.SortDescendingMenuItem: return "Sort Descending";
case RadGridStringId.ClearSortingMenuItem: return "Clear Sorting";
case RadGridStringId.ConditionalFormattingMenuItem: return "Conditional Formatting";
case RadGridStringId.GroupByThisColumnMenuItem: return "Group by this column";
case RadGridStringId.UngroupThisColumn: return "Ungroup this column";
case RadGridStringId.ColumnChooserMenuItem: return "Column Chooser";
case RadGridStringId.HideMenuItem: return "Hide Column";
case RadGridStringId.HideGroupMenuItem: return "Hide Group";
case RadGridStringId.UnpinMenuItem: return "Unpin Column";
case RadGridStringId.UnpinRowMenuItem: return "Unpin Row";
case RadGridStringId.PinMenuItem: return "Pinned state";
case RadGridStringId.PinAtLeftMenuItem: return "Pin at left";
case RadGridStringId.PinAtRightMenuItem: return "Pin at right";
case RadGridStringId.PinAtBottomMenuItem: return "Pin at bottom";
case RadGridStringId.PinAtTopMenuItem: return "Pin at top";
case RadGridStringId.BestFitMenuItem: return "Best Fit";
case RadGridStringId.PasteMenuItem: return "Paste";
case RadGridStringId.EditMenuItem: return "Edit";
case RadGridStringId.ClearValueMenuItem: return "Clear Value";
case RadGridStringId.CopyMenuItem: return "Copy";
case RadGridStringId.CutMenuItem: return "Cut";
case RadGridStringId.AddNewRowString: return "Click here to add a new row";
case RadGridStringId.ConditionalFormattingSortAlphabetically: return "Sort columns alphabetically";
case RadGridStringId.ConditionalFormattingCaption: return "Conditional Formatting Rules Manager";
case RadGridStringId.ConditionalFormattingLblColumn: return "Format only cells with";
case RadGridStringId.ConditionalFormattingLblName: return "Rule name";
case RadGridStringId.ConditionalFormattingLblType: return "Cell value";
case RadGridStringId.ConditionalFormattingLblValue1: return "Value 1";
case RadGridStringId.ConditionalFormattingLblValue2: return "Value 2";
case RadGridStringId.ConditionalFormattingGrpConditions: return "Rules";
case RadGridStringId.ConditionalFormattingGrpProperties: return "Rule Properties";
case RadGridStringId.ConditionalFormattingChkApplyToRow: return "Apply this formatting to entire row";
case RadGridStringId.ConditionalFormattingChkApplyOnSelectedRows: return "Apply this formatting if the row is selected";
case RadGridStringId.ConditionalFormattingBtnAdd: return "Add new rule";
case RadGridStringId.ConditionalFormattingBtnRemove: return "Remove";
case RadGridStringId.ConditionalFormattingBtnOK: return "OK";
case RadGridStringId.ConditionalFormattingBtnCancel: return "Cancel";
case RadGridStringId.ConditionalFormattingBtnApply: return "Apply";
case RadGridStringId.ConditionalFormattingRuleAppliesOn: return "Rule applies to";
case RadGridStringId.ConditionalFormattingCondition: return "Condition";
case RadGridStringId.ConditionalFormattingExpression: return "Expression";
case RadGridStringId.ConditionalFormattingChooseOne: return "[Choose one]";
case RadGridStringId.ConditionalFormattingEqualsTo: return "equals to [Value1]";
case RadGridStringId.ConditionalFormattingIsNotEqualTo: return "is not equal to [Value1]";
case RadGridStringId.ConditionalFormattingStartsWith: return "starts with [Value1]";