grid sample not running

1 Answer 97 Views
Grid
ixen
Top achievements
Rank 1
Iron
Iron
Iron
ixen asked on 03 Nov 2021, 09:36 AM | edited on 03 Nov 2021, 09:50 AM

Hi

 

Sample not running

https://www.telerik.com/kendo-angular-ui/components/grid/editing/external-editing/

<kendo-numerictextbox formControlName="UnitsInStock" #UnitsInStock required [format]="n0"> </kendo-numerictextbox> Property 'n0' does not exist on type 'GridEditFormComponent

//private closeForm(): void {
 closeForm(): voi

Regards

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 08 Nov 2021, 08:19 AM

Hi Ixen,

Thank you for your feedback.

Indeed the format option of the NumericTextBox component accepts a string as a value. Passing "n0", requires the option to be without square brackets:

  <kendo-numerictextbox
            formControlName="UnitsInStock"
            #UnitsInStock
            required
            format="n0"
          >
          </kendo-numerictextbox>

another approach is to use square brackets, but wrap the format in single quotes:

  <kendo-numerictextbox
            formControlName="UnitsInStock"
            #UnitsInStock
            required
            [format]="'n0'"
          >
          </kendo-numerictextbox>

https://angular.io/guide/property-binding

 

The demo is updated in our dev channel of the site.

https://www.telerik.com/kendo-angular-ui-develop/components/grid/editing/external-editing/

Once again thank you for the heads up.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
ixen
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Martin Bechev
Telerik team
Share this question
or