Multiple querystring parameters in child grid

Hi,
I see a lot of examples of passing a single value through the querystring parameter to generate a parent/child grid.  Is there a way to do the same but with multiple parameters because just passing the ID will not give me the exact records that I am looking for?  

1 Reply

VN Vignesh Natarajan Syncfusion Team November 23, 2017 01:07 PM UTC

Hi Richard, 
 
Thanks for using Syncfusion products. 
 
We have achieved your requirement through addParams property of the Grid using Query Property.  
Refer the below code snippet  
     .ChildGrid(child => 
                 { 
                     child.Datasource(ds => ds.URL("UrlDataSource").Adaptor(AdaptorType.UrlAdaptor)) 
                        .QueryString("EmployeeID") 
                        .Query("ej.Query().addParams('valtype','number').addParams('id',10251)") 
                        .AllowPaging() 
               
 
C# 
 
 
For your convenience we have prepared a sample which can be downloaded from below link 
 
Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon