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

Search Dialogbox Grid update

Hi

Bind Material Grid used to Search Dialog box  get Product code ,Product name from  Search Dialog box  ..than  Material Grid unable to update Material code and Material name

Thanks
Pratheep

Attachment: new_7be14496.rar

1 Reply

AS Alan Sangeeth S Syncfusion Team April 3, 2017 09:25 AM UTC

Hi Pratheep, 

Thanks for using Syncfusion Products. 

We have analyzed your code snippets and found that you have bound datasource to grid from code behind method Loadsalesorder. But in this method material code and material name values are not provided and so it was shown empty in grid.  

We have now modified the this method and please find the code snippet below. 

[WebMethod] 
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)] 
        public static List<Materials> Loadsalesorder(string code) 
        { 
           List<Materials> product = new List<Materials>(); 
 
           if (code == "10001") 
           { 
               product.Add(new Materials(1, "Product1", 10001, "ALFKI")); 
               
           } 
           else if (code == "10002") 
           { 
              
               product.Add(new Materials(1, "Product2", 10002, "ANATR")); 
           } 
 
 
            return product; 
        } 

We have also modified your sample and the same can be downloadable from below link 

Regards,
Alan Sangeeth S 


Loader.
Up arrow icon