This is a migrated thread and some comments may be shown as answers.
row template question
2 Answers 20 Views
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 30 Nov 2019, 01:09 PM

Hi,

How can I translate the following markup into a row template?

Thanks … Ed

<GridCommandColumn Width="300px">
      <GridCommandButton Command="Save" Icon="save" ShowInEdit="true">Update</GridCommandButton>
      <GridCommandButton OnClick="@((args)=> SelectDashboardModel(args.Item as DashboardModel))" Icon="edit">Edit</GridCommandButton>
      <GridCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true">Cancel</GridCommandButton>
  </GridCommandColumn>

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Dec 2019, 07:22 AM

Hello Ed,

This needs to be implemented in order for something like this to become possible: https://feedback.telerik.com/blazor/1422740-conditional-command-buttons-shown-on-condition-based-on-model-values-and-or-invoking-cud-operations-programmatically.

I must also note that at this point I can't say whether it will suffice, though. There is a general problem with the InCell and InLine edit modes - we don't have the cells to put our editors in, so we could not possibly do that. Perhaps the PopUp mode would work, though, it's early to say. Generally, when using a row template, one needs to implement all features the grid offers there. For example, use a generic button that toggles a flag in the model and shows a second set of markup instead - that allows editing.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Randy Hompesch
Top achievements
Rank 1
answered on 02 Dec 2019, 10:23 AM

Ahh, the joys of being at the leading... ahem … bleeding edge!

Thanks, I'll dig in.

Ed

 

Tags
Grid
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Randy Hompesch
Top achievements
Rank 1
Share this question
or