@((MarkupString)Localizer["BindComplexObjectP1"].Value)
+@((MarkupString)Localizer["BindComplexObjectP2"].Value)
+ +Tooltip related parameters of the copy column data icon by setting ShowCopyColumnTooltip CopyColumnTooltipText CopyColumnCopiedTooltipText and other settings",
"ShowColumnToolboxTitle": "Column Toolbox",
"ShowColumnToolboxIntro": "Enable the column toolbar button by setting the ToolboxTemplate parameter",
+ "BindComplexObjectTitle": "Bind Complex Types and Expressions",
+ "BindComplexObjectIntro": "When binding a complex type, whether the bound object collection is empty or not, the TItem must provide a parameterless constructor. Otherwise, it is required to provide a construction callback through CreateItemCallback. When binding a complex expression, the bound expression must not throw a NullReferenceException exception. If the business logic cannot avoid this issue, it is recommended to handle it using a Template",
+ "BindComplexObjectP1": "In this example, the complex type ComplexFoo does not have a parameterless constructor, so a construction callback for ComplexFoo should be provided through CreateItemCallback",
+ "BindComplexObjectP2": "In this example, we want to bind a complex expression context.Company.Name to the column CompanyName, but the business logic cannot ensure that the value of the Company property is not null at the time of binding. Therefore, we can first bind a simple expression and then handle it using the column template Template",
+ "BindComplexObjectButtonText": "Set company",
+ "ComplexFooDateTime": "DateTime",
+ "ComplexFooName": "Name",
+ "ComplexFooAddress": "Address",
+ "ComplexFooAge": "Age",
+ "ComplexFooCompany": "Company",
"OnColumnCreatingTitle": "Set current column properties",
"OnColumnCreatingIntro": "By specifying OnColumnCreating callback, make secondary data changes to the column collection",
"OnColumnCreatingP1": "Existing columns can be extended through the parameters in the OnColumnCreating callback method:",
diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json
index b222bb7fe7c..b8ffd5c90c4 100644
--- a/src/BootstrapBlazor.Server/Locales/zh-CN.json
+++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json
@@ -5050,6 +5050,16 @@
"ShowCopyColumnDesc": "可以通过设置 ShowCopyColumnTooltip CopyColumnTooltipText CopyColumnCopiedTooltipText 等设置微调拷贝列数据图标的 Tooltip 相关参数",
"ShowColumnToolboxTitle": "列工具栏",
"ShowColumnToolboxIntro": "通过设置列 ToolboxTemplate 参数,开启列工具栏按钮",
+ "BindComplexObjectTitle": "绑定复杂类型和表达式",
+ "BindComplexObjectIntro": "当绑定复杂类型时,无论绑定的对象集合是否为空,都要求 TItem 提供无参构造函数,否则要求通过 CreateItemCallback 提供构造回调;当绑定复杂表达式时,要求绑定时该表达式不得引发 NullReferenceException 异常,如果业务逻辑无法避免此问题,建议使用 Template 进行处理",
+ "BindComplexObjectP1": "本例中,复杂类型 ComplexFoo 不具备无参构造函数,需通过 CreateItemCallback 提供 ComplexFoo 的构造回调",
+ "BindComplexObjectP2": "本例中,我们希望将复杂表达式 context.Company.Name 绑定到列 CompanyName 上,但是业务逻辑无法确保绑定时属性 Company 的值不为 null 。因此可以先绑定简单表达式,再通过列模板 Template 进行处理",
+ "BindComplexObjectButtonText": "设置公司",
+ "ComplexFooDateTime": "日期",
+ "ComplexFooName": "姓名",
+ "ComplexFooAddress": "地址",
+ "ComplexFooAge": "年龄",
+ "ComplexFooCompany": "公司",
"OnColumnCreatingTitle": "设置当前列属性",
"OnColumnCreatingIntro": "通过指定 OnColumnCreating回调,对列集合进行数据二次更改",
"OnColumnCreatingP1": "通过 OnColumnCreating 回调方法中的参数既可以对现有列进行扩展:",