soroush.elec
شنبه 24 اسفند 1392, 00:40 صبح
سلام
من یک گرید kendo دارم که فیلد هایش به صورت زیر است
columns: [
{ field: "Name", title: 'نام کالا', width: "100px" },
{ field: "Price", title: 'قیمت', format: "{0:c}", width: "120px", type: "number" },
{ field: "Category", title: 'گروه کالا', width: "160px", editor: categoryDropDownEditor, template: "#=Categories.Name#" },
{ field: "BrandId", title: 'برند کالا', width: "160px" },
{ field: "Discount", title: 'تخفیف', format: "{0:c}", width: "120px", type: "number" },
{ field: "Pic", title: 'عکس کوچک', template: "<img width= '40px' height= '60px' src='#=Pic#' />", width: "120px", editor: albumArtEditor, filterable: false, sortable: false, groupable: false },
{ field: "BigPic", title: 'عکس بزرگ', template: "<img width= '40px' height= '60px' src='#=BigPic#' />", width: "120px", editor: albumArtEditor, filterable: false, sortable: false, groupable: false },
{ field: "Popularity", title: 'تعداد فروخته شده', width: "150px", type: "number" },
{ field: "Stock", title: 'موجودی', width: "100px", type: "number" },
{ command: ["edit", "destroy"], title: " ", width: "200px" }
],
اما دکمه اضافه کردن رکورد جدید گرید یا همان create کار نمی کند.
وقتی فیلد های عکس pic و BigPic را حذف می کنم یا حتی وقتی template ها را از این دو فیلد بر می دارم دکمه add دوباره درست کار می کند. لطفا راهنمایی بفرمایید.
من یک گرید kendo دارم که فیلد هایش به صورت زیر است
columns: [
{ field: "Name", title: 'نام کالا', width: "100px" },
{ field: "Price", title: 'قیمت', format: "{0:c}", width: "120px", type: "number" },
{ field: "Category", title: 'گروه کالا', width: "160px", editor: categoryDropDownEditor, template: "#=Categories.Name#" },
{ field: "BrandId", title: 'برند کالا', width: "160px" },
{ field: "Discount", title: 'تخفیف', format: "{0:c}", width: "120px", type: "number" },
{ field: "Pic", title: 'عکس کوچک', template: "<img width= '40px' height= '60px' src='#=Pic#' />", width: "120px", editor: albumArtEditor, filterable: false, sortable: false, groupable: false },
{ field: "BigPic", title: 'عکس بزرگ', template: "<img width= '40px' height= '60px' src='#=BigPic#' />", width: "120px", editor: albumArtEditor, filterable: false, sortable: false, groupable: false },
{ field: "Popularity", title: 'تعداد فروخته شده', width: "150px", type: "number" },
{ field: "Stock", title: 'موجودی', width: "100px", type: "number" },
{ command: ["edit", "destroy"], title: " ", width: "200px" }
],
اما دکمه اضافه کردن رکورد جدید گرید یا همان create کار نمی کند.
وقتی فیلد های عکس pic و BigPic را حذف می کنم یا حتی وقتی template ها را از این دو فیلد بر می دارم دکمه add دوباره درست کار می کند. لطفا راهنمایی بفرمایید.