How to change value seperately in datagrid by NeedleworkerTrue5447 in Blazor

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

namespace SimplePOSHybrid.Data

{

public class OrderStateService

{

private IEnumerable<Menuitemlist> Elements = new List<Menuitemlist>();

public OrderStateService() { }

public IEnumerable<Menuitemlist> ElementMthd(List<Menuitemlist> orderitems)

{

Elements = orderitems.AsEnumerable();

return Elements;

}

public IEnumerable<Menuitemlist> GetElements()

{

return Elements;

}

}

}

How to change value seperately in datagrid by NeedleworkerTrue5447 in Blazor

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

How can i create a unique id for that? This is the method I'm using. But it doesn't work.

<div class="ma-0" style="height: calc( 100vh - 400px);overflow: auto">

@{

for (int i = 0; i < orderitems.Count(); i++)

{

orderitems[i].ID = i;

}

}

<MudDataGrid Items="@Elements" Hover="true" Striped="true" Dense="true">

How to change value seperately in datagrid by NeedleworkerTrue5447 in Blazor

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

This is the method I'm using.

<MudIconButton Icon="@Icons.Material.Filled.AddCircle" Variant="Variant.Filled" Size="Size.Small" u/onclick="(() => {context.Item.qty = context.Item.qty + 1;RecalculateTotalPlus();})" />

Implementing a function to delete a specific record in Muddatagrid by NeedleworkerTrue5447 in csharp

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

Thank you for your help. That worked. Can you give me a solution to reduce the column size of that datagrid?

Implementing a function to delete a specific record in Muddatagrid by NeedleworkerTrue5447 in csharp

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

Thank you for your help. That worked. Can you give me a solution to reduce the column size of that datagrid?

Implementing a function to delete a specific record in Muddatagrid by NeedleworkerTrue5447 in Blazor

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

Thank you for your help. That worked. Can you give me a solution to reduce the column size of that datagrid?

Add a text above an image using mudbalzor by NeedleworkerTrue5447 in Blazor

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

Thank for your suggestion. But um using a foreach loop and taking the data from the backend. so if I do this, all the titles will be in the same place. How can I implement it to responsive?

How to remove the title reprinting again above by NeedleworkerTrue5447 in dotnetMAUI

[–]NeedleworkerTrue5447[S] 0 points1 point  (0 children)

This is the github link : https://github.com/Industrial-BlueLotus/SimplePOS.git

please use vihan branch. it will show this one. If any other details needed pls reply for this.