Hi Neha,
Greetings from Syncfusion support.
Query – 1: “I am having global serach box in my html which is querying for grid data dynamically. Once I get response grid is not getting refresh”
We checked your query and before proceeding further can you please share us the following information to identify your exact problem scenario,
- From this – “I am having global serach box in my html which is querying for grid data dynamically”, can you let us know if you have just queried the search input value or applied the query to the Grid?
- From this – “Once I get response grid is not getting refresh”, can you let us know if you have directly queried the Grid data or updated the response data to the Grid? If you have updated the response data to the Grid can you please share us the code snippet for it.
- Have you bound local or remote data to the Grid? If remote data which adaptor have you used?
- Grid code file so that we can check the reported problem with the Grid settings enabled in your application.
Query – 2: “I have a scenario where 'ejs-grid' table column(few items in a column) will have + symbol as prefix and clicking on it will expand the particular row to show few inner detailed data. How to achieve this?”
We checked this query and would like to let you know that if your requirement is to render a child table that has relationship with the parent Grid, we suggest you to use the Hierarchical binding functionality for this. More details on this with preview sample can be checked in the below help documentation link,
However if your requirement is just to display a detail row content that contains additional details about the parent row without the need for a table structure, then we suggest you to Detail template feature of the Grid for this. More details on this can be checked in the below online preview sample link,
Note: The Detail template functionality has not been documented in the help site. We have logged a documentation task for this, and we will update and refresh it online as soon as possible. So if you need more information on the Detail template then please check the below JavaScript(ES6) documentation link,
In both these functionalities, the child table/detail row will have arrow icons to expand/collapse them. You can replace them with your own icons if required by overriding the following class of the Grid element and setting the icon styles to them,
/* Expand icon style */
.e-grid .e-icon-grightarrow::before {
/* You can set your required icon style here */
content: ' '
}
/* Collapse icon style */
.e-grid .e-icon-gdownarrow::before {
/* You can set your required icon style here */
content: ' '
} |
Let us know if you have any concerns.
Regards,
Sujith R