Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <EjsGrid DataSource="@Entities" PageSettings="@_pageSettings" ModelType="@ModelType"
- AllowSorting="@EnableSorting" AllowPaging="@EnablePaging"
- AllowFiltering="@EnableFiltering">
- <GridColumns>
- @foreach (var definedProperty in ViewDefinition.ViewFields)
- {
- <GridColumn HeaderText="@definedProperty.DisplayName">
- <Template>
- @{
- Console.WriteLine("Inside Template");
- var dynamicEntity = (context as DynamicEntity);
- Type t = context.GetType();
- Console.WriteLine($"dynamicEntity null: {dynamicEntity == null}");
- <span>
- @{
- Console.WriteLine($"definedProperty null: {definedProperty == null}");
- dynamicEntity?.GetValue<string>(definedProperty?.PropertyName);
- }
- </span>
- }
- </Template>
- </GridColumn>
- }
- </GridColumns>
- </EjsGrid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement