This is a migrated thread and some comments may be shown as answers.

Adding Checkbox in ng-template

1 Answer 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 16 Sep 2020, 01:47 PM

HI All

 

 In Angular Grid : Can we have grid by default editable instead of clicking .

 

Request you to share the link

 

Regards

Praveen

1 Answer, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 18 Sep 2020, 02:48 AM

Hi Praveen,

To show the editable Grid by default when the Grid loads, use the CellTemplateDirective to add any component of your choice. For example:

<kendo-grid-column field="ProductName" title="Name" width="250">
  <ng-template kendoGridCellTemplate let-dataItem>
    <kendo-textbox value="{{dataItem.ProductName}}" style="width: 230px;">
    </kendo-textbox>
  </ng-template>
</kendo-grid-column>

In this StackBlitz example, I have added the Textbox and the Dropdown List making the Grid editable by default.

Please let me know if this helps. In case I have misunderstood your requirement, could you please respond with additional detailed information? I will further assist you.

Regards,
Hetali
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Grid
Asked by
Praveen
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Share this question
or