Spreadsheet OnChange event doesn't track the modification of cell and DataAnnotation

1 Answer 90 Views
Spreadsheet
Florian
Top achievements
Rank 1
Florian asked on 12 Oct 2021, 09:12 PM
  1. OnChange event doesn't track the cell modification after add data to the original value. (screenshot on the demo).
  2. Another question, I use the annotations on my viewmodel but it does not appear in the spreadsheet ? (same things on the site demo https://demos.telerik.com/aspnet-core/spreadsheet/datasource => [Display(Name = "Product name")] into the viewmodel but not in the spreadsheet) ? 

Regards,

Florian.

brajesh
Top achievements
Rank 1
Iron
commented on 15 Jun 2022, 05:42 AM

Hello Florian,

Your second question annotations working like this

 sheet.setDataSource(dataSource,
        [
        { field: "CompanyName", title: "CompanyName" },
        { field: "SBU", title: "SBU" },
        { field: "Family", title: "Family" },
        { field: "Subfamily", title: "Subfamily" },
        { field: "ScenarioName", title: "ScenarioName" },
        { field: "GroupMaster", title: "Group Master", enable: false},
        { field: "_Nprojectid", title: "Project ID" },
        { field: "_Tprojectname", title: "Project Name" },

]);

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 15 Oct 2021, 01:32 PM

Hello Florian,

  1. The "change" event of the DataSource is not triggered in this case, since the cell value is not valid. The field "UnitPrice" is defined as "number" in the schema and it accepts only numeric data.
  2. At this stage. the Spreadsheet does not work with DataAnnotations.

If any additional questions arise, feel free to let me know.

 

Regards, Mihaela Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
Spreadsheet
Asked by
Florian
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or