Csla and IgniteUI.Blazor #3328
Replies: 8 comments 3 replies
-
I've used infragistics in the past but moved to Radzen since their controls are free. I didn't have problems binding the grid. Can you provide an example of both the front end and code you're using?
Regards
Kevin
…________________________________
From: Brad-IMS ***@***.***>
Sent: Wednesday, May 3, 2023 9:30:45 PM
To: MarimerLLC/csla ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [MarimerLLC/csla] Csla and IgniteUI.Blazor (Discussion #3328)
After many years successfully using Csla 4.5 with Infragistics Windows Forms and WPF grids, I am currently developing a Blazor WebAssembly app using Csla 6.2.2 and Infragistics' IgniteUI.Blazor IgbGrid. However, the grid does not seem to want to bind with a Csla collection based on either BusinessBindingListBase or BindingListBase. Has anyone else encountered this combination of technologies, and, if so, how did you get it to work?
—
Reply to this email directly, view it on GitHub<#3328>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGJTVDSIHDWP777VYOCQ673XEMBELANCNFSM6AAAAAAXVELN24>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
No. I bind to VM.Model.attributeName in the control. I'll send you an example tonight.
Regards
Kevin
…________________________________
From: Brad-IMS ***@***.***>
Sent: Friday, May 5, 2023 12:44:58 PM
To: MarimerLLC/csla ***@***.***>
Cc: Kevin Cabral ***@***.***>; Comment ***@***.***>
Subject: Re: [MarimerLLC/csla] Csla and IgniteUI.Blazor (Discussion #3328)
The Radzen grid looks intriguing, but I can't bind to that either. It seems to default to binding to IQueryable LINQ data. Did you have to do anything special to bind your Csla collection?
—
Reply to this email directly, view it on GitHub<#3328 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGJTVDVMR46A2NKOY4J27K3XEU4BVANCNFSM6AAAAAAXVELN24>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
<RadzenDataGrid @ref="grid0" ColumnWidth="200px" AllowFiltering="true" FilterMode="FilterMode.Advanced" AllowPaging="true" AllowSorting="true"
protected override async Task OnInitializedAsync()
|
Beta Was this translation helpful? Give feedback.
-
Please show me your code.
Regards
Kevin
…________________________________
From: Brad-IMS ***@***.***>
Sent: Monday, May 15, 2023 10:12:20 AM
To: MarimerLLC/csla ***@***.***>
Cc: Kevin Cabral ***@***.***>; Comment ***@***.***>
Subject: Re: [MarimerLLC/csla] Csla and IgniteUI.Blazor (Discussion #3328)
Still having trouble getting it to work. For your List class, are you using BusinessBindingListBase or BusinessListBase? Also, in your earlier comment, you said you were binding to VM.Model.attributeName, but in your code sample I see ***@***.***". Can you elaborate on that?
—
Reply to this email directly, view it on GitHub<#3328 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGJTVDU2X7XZ7QVI5YMOAETXGJBVJANCNFSM6AAAAAAXVELN24>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm attaching the relevant files, plus some elements extracted from larger files. I'm normally using ADO.Net, but I've also been testing with an EFCore version. On the collection class, I've tried both BusinessBindingListBase and BusinessListBase. I'm having trouble connecting to either the Radzen grid or the Infragistics grid. I'm able to connect to the Infragistics grid if I convert my Csla collection to a List, but then I have to handle binding manually. BTW, thanks for your help.
|
Beta Was this translation helpful? Give feedback.
-
Brad,
I would change private RadzenDataGrid<POS>? rgrid;
To
protected RadzenDataGrid<POS> rgrid;
Then put a breakpoint here: var temp = vm.Exception;
Check vm.Model for data.
I don’t see anything else other than that. I’ve used BusinessListBase and DynamicListBase and both bind to the grid..
Regards,
Kevin
831 905-0062
From: ***@***.***>
Sent: Tuesday, May 16, 2023 10:27 AM
To: ***@***.***>
Cc: Kevin ***@***.***>; ***@***.***>
Subject: Re: [MarimerLLC/csla] Csla and IgniteUI.Blazor (Discussion #3328)
I'm attaching the relevant files, plus some elements extracted from larger files. I'm normally using ADO.Net, but I've also been testing with an EFCore version. On the collection class, I've tried both BusinessBindingListBase and BusinessListBase. I'm having trouble connecting to either the Radzen grid or the Infragistics grid. I'm able to connect to the Infragistics grid if I convert my Csla collection to a List, but then I have to handle binding manually. BTW, thanks for your help.
builder.Services.AddDbContext<StadisDbContext>(options =>
options.UseSqlServer(builder?.Configuration?.GetConnectionString("DefaultConnection") ?? ""));
builder.Services.AddScoped<StadisDbConnection>(options =>
new StadisDbConnection(builder?.Configuration?.GetConnectionString("DefaultConnection") ?? ""));
builder.Services.AddTransient(typeof(StadisAccess.IPOSDal), typeof(StadisAccess.POSDal));
public class POSEntity
{
[Key]
public string? POSID { get; set; } = null!;
public string? VendorID { get; set; }
public string? LocationID { get; set; }
public string? TranTypeDefault { get; set; }
[NotMapped]
public int ReturnCode { get; set; }
[NotMapped]
public string? ReturnMessage { get; set; }
}
public interface IPOSDal
{
POSEntity Get(string id);
List<POSEntity> Get();
POSEntity Insert(POSEntity pos);
POSEntity Update(POSEntity pos);
bool Delete(string id);
}
POS.txt<https://github.com/MarimerLLC/csla/files/11488728/POS.txt>
POSDal(ADO.Net).txt<https://github.com/MarimerLLC/csla/files/11488729/POSDal.ADO.Net.txt>
POSDal(EF).txt<https://github.com/MarimerLLC/csla/files/11488730/POSDal.EF.txt>
POSEdit.txt<https://github.com/MarimerLLC/csla/files/11488731/POSEdit.txt>
—
Reply to this email directly, view it on GitHub<#3328 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGJTVDUMIHGSWYN3UKIY25LXGOFD7ANCNFSM6AAAAAAXVELN24>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Curiouser and curiouser. I changed the code as shown below:
With breakpoints after the 'string x' in each: At end of OnInitializedAsync: At end of OnParametersSetAsync: Now for the weird part. At end of OnParametersSetAsync: So, it looks like it may be a timing issue as far as loading the grid, but that doesn't explain why the grid doesn't display once it has data. |
Beta Was this translation helpful? Give feedback.
-
See if you need to notify the binding engine of the change using:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After many years successfully using Csla 4.5 with Infragistics Windows Forms and WPF grids, I am currently developing a Blazor WebAssembly app using Csla 6.2.2 and Infragistics' IgniteUI.Blazor IgbGrid. However, the grid does not seem to want to bind with a Csla collection based on either BusinessBindingListBase or BindingListBase. Has anyone else encountered this combination of technologies, and, if so, how did you get it to work?
Beta Was this translation helpful? Give feedback.
All reactions