文章分類/

Infragistics|Ignite UI for jQuery|在 ASP.NET Core 中使用 Ignite UI 標記幫助程序

尚無瀏覽量
2023-07-17 更新

infragistics log

從 2019 年第 2 卷版本開始,Ignite UI for jQuery 產品現在在 ASP.NET Core 中提供了標記幫助器。

在 Visual Studio 中創建 ASP.NET Core Web 應用程序後,將標記幫助器添加到視圖的範圍。

@使用Infragistics.Web.Mvc
@addTagHelper Infragistics.Web.Mvc.TagHelpers.Grids.*,Infragistics.Web.AspNetCore

在標籤助手上,

  • 將控件聲明為標籤。
  • 選項設置為屬性。

    • 然而,由 lambda 表達式設置的選項被聲明為子標籤。

您可以使用 設置控制。

<!– 將控件名稱聲明為標籤。選項設置為屬性。 –>
<ig-grid ig-data-source=“@Model”
auto-generate-columns=“false”
auto-generate-layouts=“false”
primary-key=“Id”
render-checkboxes=“true”
width=“900px”
id=“grid”>
<!– 在 HTML 幫助程序中使用 lambda 表達式聲明要設置的選項作為子標記,例如列 –>
<columns>
<column key=“Id” header-text=“ID” width=“150px” />
<column key=“Username” width=“200px” />
<column key=“IsAdmin” header-text=“Is аdmin” ig-data-type=“bool” width=“200px” />
<column key=“BirthDate” header-text=“Birth date” ig-data-type=“date” width=“100px” />
<column key=“CountryId” header-text=“Country” width=“200px” />
</columns>
<features>
<sorting>
</sorting>
</features>
</ig-grid>

快速跳轉目錄

✦ 群昱 AccessSoft 你的全面軟體解決方案 ✦

身為全球眾多知名軟體在台灣合作夥伴,歡迎諮詢你需要的軟體服務!

Picture of 軟體專家
軟體專家

群昱作為全球知名軟體推薦合作夥伴,致力於提供更多軟體解決方案給你!

更多軟體新知

立即詢價

請留下完整資訊,以便我們提供精確的服務內容給你。

詢價資訊