How to build a property grid?

I want to build a property grid  as below image
Property Grid

I want to use Data Grid or any syncfusion vue components that is suitable.
Data Grid have two columns:
- Property name: read only
- Property value: Can modify or read only. This column have different controls depend on property value type, controls can be input text, select, datetime, checkbox ...
- Properties can be grouped (using group feature of Data Grid) or ungroup, or short by alphabet
- Can edit property value without double click
- Data Grid header column should hidden

How can i do this?

5 Replies

SK Sujith Kumar Rajkumar Syncfusion Team May 26, 2020 11:12 AM UTC

Hi Kha, 

Greetings from Syncfusion support. 

For your requirement you can use either the EJ2 Grid or TreeGrid control to achieve it. You can check these control demos from the online demo site links given below, 



So before proceeding with your query can you please confirm to us which control satisfies your requirement based on which we will update the further details. 

Let us know if you have any concerns. 

Regards, 
Sujith R 



KC Kha Chan Thanh May 26, 2020 03:08 PM UTC

Hi Sujith R!
I think that i will use EJ2 Grid
- Properties can be grouped by property name or ungroup, or sort by alphabet (use Grouping)
- Column have different controls depend on property value type, i do not sure, whether Data Grid Row Template can be use in this case?
- Can I edit property value without double click on data grid row
- Final, i want hide Data Grid column header

Regards, 
Kha


SK Sujith Kumar Rajkumar Syncfusion Team May 27, 2020 12:14 PM UTC

Hi Kha, 
 
Thanks for the information. 
 
Query – 1: Properties can be grouped by property name or ungroup, or sort by alphabet (use Grouping) 

The grouping operation will be performed based on the column field and the sorting is performed based on the column values. This is the default behavior of these functionalities. More details on this with online demo sample can be found in the below help documentation link, 


 
Query – 2: Column have different controls depend on property value type, i do not sure, whether Data Grid Row Template can be use in this case? 

If your requirement is to render custom controls for different columns then we suggest you to use the column template property. Rendering custom controls in Grid using column template is documented in the below help documentation link, 


If you wish to customize the entire row layout then we suggest you to use the row template. More details on this can be found in the below help documentation link, 

 
Query – 3: Can I edit property value without double click on data grid row 

Yes, you can use the startEdit method in the Grid’s click event to start row edit on single click. This requirement is documented in the below help documentation link, 


 
Query – 4: Final, i want hide Data Grid column header 

You can hide the Grid header by setting display as ‘none’ to the Grid’s header class in the CSS level. This is demonstrated in the below code snippet, 

.e-grid .e-gridheader { 
    display: none !important;  

If the column header is hidden then you will not be able to group or ungroup columns using mouse. You would need to use the Grid’s groupColumn or ungroupColumn method to perform grouping. Can you please let us know your exact requirement here so that we can provide the proper solution for it. 


Let us know if you have any concerns. 

Regards, 
Sujith R 



KC Kha Chan Thanh June 4, 2020 04:30 PM UTC

Thanks Sujith R,


SK Sujith Kumar Rajkumar Syncfusion Team June 5, 2020 05:45 AM UTC

Hi Kha, 

We are always happy to assist you with your queries. Please get back to us if you require any further assistance. 

Regards, 
Sujith R 


Loader.
Up arrow icon