Guest User

Syncfusion Grid Definition

a guest
Jul 29th, 2019
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <EjsGrid DataSource="@Entities" PageSettings="@_pageSettings" ModelType="@ModelType"
  2.                  AllowSorting="@EnableSorting" AllowPaging="@EnablePaging"
  3.                  AllowFiltering="@EnableFiltering">
  4.             <GridColumns>
  5.                 @foreach (var definedProperty in ViewDefinition.ViewFields)
  6.                 {
  7.                     <GridColumn HeaderText="@definedProperty.DisplayName">
  8.                         <Template>
  9.                             @{
  10.                                 Console.WriteLine("Inside Template");
  11.                                 var dynamicEntity = (context as DynamicEntity);
  12.                                 Type t = context.GetType();
  13.                                 Console.WriteLine($"dynamicEntity null: {dynamicEntity == null}");
  14.                                 <span>
  15.                                     @{
  16.                                         Console.WriteLine($"definedProperty null: {definedProperty == null}");
  17.                                         dynamicEntity?.GetValue<string>(definedProperty?.PropertyName);
  18.                                     }
  19.                                 </span>
  20.                             }
  21.                         </Template>
  22.                     </GridColumn>
  23.                 }
  24.             </GridColumns>
  25.         </EjsGrid>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×