CSS Template for DataGrid Adv

taylor
edited June 18 in CSS Examples

Can you provide a CSS template for an Advanced Data Grid?

Comments

  • Kathryn_Decisions
    edited June 18

    Here is the CSS template for an Advanced Data Grid!

    /*
    You need to find & replace `.dp-gridview.advanced-data-grid`
    with `.custom-compact .dp-gridview.advanced-data-grid`, and add `.custom-compact` to the root container of your form.
    */
    
    .dp-gridview.advanced-data-grid {
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__header {
      height: 26px;
      min-height: 24px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__header-name {
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__row-holder {
      min-height: 24px;
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__cell-content {
      min-height: 24px;
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__groupheader {
      height: 24px;
    }
    
    .dp-gridview.advanced-data-grid {
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__icon-holder {
      width: 20px;
      height: 20px;
      min-width: 20px;
      min-height: 20px;
      align-items: center;
      justify-content: center;
      border-radius: 100%;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__header {
      height: 24px;
      min-height: 24px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__header-name {
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__row-holder {
      min-height: 24px;
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__cell-content {
      min-height: 24px;
      font-size: 14px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__groupheader {
      height: 24px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__group-icon {
      background-image: url("../Content/Images/Report/group.svg");
      background-size: contain;
      width: 12px;
      height: 12px;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__group-icon--active {
      display: flex;
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__sort-icon {
      height: 12px;
      width: 12px;
      min-width: 12px;
      background-image: url("../Content/Images/Report/sort_up.svg");
    }
    .dp-gridview.advanced-data-grid .dp-report-grid-viewer__sort-icon--active {
      display: flex;
    }
    


Sign In or Register to comment.