Insert inline

Hi support i've a problem with my grid. When i insert a record the corresponding insert action in controller was called correctly but the parameter is always null.

Where i wrong ?

Other question. I need to validate with the fluenvalidation and i would like to show the error messages like the validation rule. It's possible to achieve that ? Have you other solution to display the error messages ?

Thanks in advance
Stefano Capobianco

Attachment: Schedulings_26f949ea.7z

3 Replies

MP Manivannan Padmanaban Syncfusion Team April 27, 2018 12:42 PM UTC

Hi Stefano, 

Thanks for contacting syncfusion support. We are happy to assist you. 
 
Query 1: When i insert a record the corresponding insert action in controller was called correctly but the parameter is always null. 
 
We are unable to reproduce the reported issue at our end. For your convenience we have created the sample based on your code example, please refer the below link for sample. 



Screenshot: 

 




After referring the sample still facing the issue. Please get back to us, with following details. 

  1. Share the issue replication procedure.
  2. If possible share the issue reproducing sample (or) try to reproduce the issue in the provided sample.
  3. Please share the video demo.

Query 2: I need to validate with the fluenvalidation and i would like to show the error messages like the validation rule. It's possible to achieve that ? Have you other solution to display the error messages ? 
 
We have already discussed the same in our UG help documentation. Please refer the below link, 



Regards, 

Manivannan Padmanaban. 



SC Stefano Capobianco April 27, 2018 02:43 PM UTC

Hi Manivannan Padmanaban, thanks for your response. In my case, when the DropDownList  is filled, the CRUDModel is correctly sent to backend, otherwise the value is always null. 

For the second question i would like to validate the record server side wioth fluentvalidation library and i would like to set any validation rule in client side. How can do that ?( obviously the first question is bounded with the second because even if the DropDownList is filled or not i need to receive the Model for validation step ).

Other little question. How can i intercept the Esc key to stop the row editing ?

Thanks in advance
Stefano


KM Kuralarasan Muthusamy Syncfusion Team May 1, 2018 09:13 AM UTC

Hi Stefano, 


Query #1: For the second question I would like to validate the record server side wioth fluentvalidation library and i would like to set any validation rule in client side. How can do that ?( obviously the first question is bounded with the second because even if the DropDownList is filled or not i need to receive the Model for validation step ). 

We have analyzed your query and we found that you want to perform validation in server side. So we suggest you to achieve your requirement using Data Annotation in Grid. 

Please refer the following link to know about DataAnnotation: 


But you also mentioned that you want to set validation in client side. We have given support for custom validation to the columns.  
  
Please refer the following link to know about custom validation: 


 
Query #2: Other little question. How can i intercept the Esc key to stop the row editing ? 
 
We suspect that you want to perform different action when Esc key is pressed and so we suggest you to achieve your requirement using KeySettings property of the Grid. By Default, Esc key is used to cancel the edit action. You can modify the default key actions using the KeySettings. 
 
Please refer the following link to know about keysettings property: 
 
 
 
 
If above solutions does not meet your requirement kindly get back to us with more details regarding your requirement. 
 
 
 
Regards, 
Kuralarasan M. 


Loader.
Up arrow icon