Possible to change initial values for incell Add Command?

1 Answer 16 Views
Grid
John
Top achievements
Rank 1
Iron
John asked on 01 Jun 2021, 08:11 AM
Hi there, 

I'd like to be able to click the Add command button, a child component will popup and I will be able to select an item that will then fill in some fields of the new grid row. I can't seem to get this to work with incell editing though, is this possible?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Jun 2021, 12:19 PM

Hi John,

The easiest way to define an initial default value for a new Grid row is via the model constructor.

If you need a more flexible approach, then get the Grid state, define a InsertedItem with the desired initial values, and set back the updated Grid state. In this way, the user will enter insert mode.

The following Knowledge Base article provides more information for both options:

https://docs.telerik.com/blazor-ui/knowledge-base/grid-default-value-for-new-row

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
John
Top achievements
Rank 1
Iron
Answers by
Dimo
Telerik team
Share this question
or