We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I update my column template?

Thread ID:

Created:

Updated:

Platform:

Replies:

147863 Sep 26,2019 06:07 AM UTC Sep 27,2019 10:44 AM UTC Angular - EJ 2 1
loading
Tags: Grid
Lam Pham
Asked On September 26, 2019 06:07 AM UTC

Dear supporters!
I customized my column header with a checkbox and it appeared. And when i clicked the checkbox, my function checkboxUpdate() called and change the variable, but the checkbox doesn't update UI even grid.refreshHeaders() be called inside checkboxUpdate().

                    <div hidden id="opHeaderTemplate">
                        <mat-checkbox  #checkbox
                            (change)="setAllOPValue()"
                            [checked]="isAllYes" >
                        </mat-checkbox>
                        O&P Y/N
                    </div>


<e-column #opHeaderColumn
          field='OP'
          width='10%'
          textAlign='Center'
          headerTemplate="#opHeaderTemplate">
</e-column>


public setAllOPValue() {
    this.isAllYes = !this.isAllYes;
    this.grid.refreshHeader();
  }

Thavasianand Sankaranarayanan [Syncfusion]
Replied On September 27, 2019 10:44 AM UTC

Hi Lam, 
 
Greetings from Syncfusion support. 

Before we start providing solution on your query, Please share the below details that will be helpful for us to provide better solution. 

  1. You want to keep the checkbox always in checked state?
  2. In the checkbox change event you have modified the checked state again, which is already that checkbox state.
  3. Please share your exact requirement scenario about what you like to handle in change event.

Regards, 
Thavasianand S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon