ejGrid cell editing and validations

Hello,

 Got some issues with grid/cell editing and validations. It all sums up to a few questions:

 Question 1. Column validation:

 So I tried to set validationRules as shown below. Wrote settings into fields and then passed those settings to the grid.

The validationRules are shown as a property when you inspect an element, but it doesn't take any affect. The grid validation is always true and error message is never shown, so it never fires validationRule. Am I missing something? Edit mode that I‘m using is Batch

Question 2. Cell edit:

 The last html I see is ej-grid so it becomes difficult to access columns and cells. The only methods available are built in methods as cellEdit cellSave and etc. Can I somehow reach columns/cells in order to have my custom or e.g. onChange and other events?



1 Reply

VN Vignesh Natarajan Syncfusion Team March 7, 2018 12:53 PM UTC

Hi Customer, 

Thanks for using Syncfusion products. 

Query: “Column validation:” 

We have analyzed your query and we have prepared a sample as per your suggestion. We are not able to reproduce the reported issue (“validation not showing”) at our end.  

The sample can be downloaded from below link 


Kindly ensure whether you have referred the jQuery validation files in your sample.  

If the issue still occurs, kindly share the following details  

1.       Share the index.html file where you have referred the all the script files. 
2.       Share the screenshot of script error in the console window (if any). 
3.       If possible try to share the issue reproducible sample or reproduce the reported issue in provided sample. 
4.       Ensure the referred scripts are correctly loaded to grid once sample is launched.  
5.       Refer the below screenshot 
 
 

Query2:  Cell edit” 

We have analyzed your requirement and we suspect that you want to change the values of particular cell while edit. If you want to modify the particular cellvalue while using batch Editing 
setCellValue method can be used to achieve your requirement.  

Refer our API documentation for your reference 


If above solution does not match your requirement kindly share more details regarding your requirement. 

Regards, 
Vignesh Natarajan 




Loader.
Up arrow icon