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. Image for the cookie policy date

Add third party dropdown control in grid

Hi,
Is it possible to add any third party dropdown (e.g - ng-select) control inside the grid?

Thanks 

5 Replies

BS Balaji Sekar Syncfusion Team August 30, 2019 01:15 AM UTC

Hi Akbar, 
  
Before proceeding further, we need to confirm that whether you want to bind dropdown in intial rendering of Grid or editing state. Please share the details to us it will help to validate further.  
  
Regards, 
Balaji S. 



AK AKBAR August 30, 2019 08:36 AM UTC

Hi Balaji,
Thanks for your support.
My requirement is at editing state.

Regards 
Akbar


DR Dhivya Rajendran Syncfusion Team September 2, 2019 06:53 AM UTC

Hi Akbar, 

Thanks for sharing the details. 

By default, we have provided editTemplate option to use custom component in Grid edit form. Please refer the below help documentation for more information. 


We also provided dropdown edit(with syncfusion dropdownlist) option for grid, please refer the below help documentation for more information about grid edit types. 


Please get back to us if you need further assistance from us. 

Regards, 
R.Dhivya 




AK AKBAR September 16, 2019 02:41 PM UTC

Thanks for your support,

I am able to render controls inside grid using template but properties binding is not working.
Here is my sample code

   <e-column field='OrderDate' headerText='Section'  width=150>
            <ng-template #editTemplate let-data>
                <ng-select [items]="recipeDropDown" bindLabel="displayvalue" bindValue="savedvalue"
                    placeholder="Select Section">
                </ng-select>
            </ng-template>
        </e-column>


TS Thavasianand Sankaranarayanan Syncfusion Team September 17, 2019 01:19 PM UTC

Hi Akbar, 

Thanks for your update. 

As per the provided information, we have created a sample and render the ng-select component in Grid using editTemplate property  and there is a positioning problem in ng-select component. 

Please refer the attachment for more information the dropdown panel are not shown properly in grid edit form. 

 

Could you please share is there any specific reason for using ng-select ? if not then we suggest you to use the syncfusion dropDownList component instead of ng-select to resolve the problem. 

Please refer the below help documentation for more information about dropdown component and grid edit types. 



Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon