Hi Walter,
Greetings from Syncfusion support.
Please find the response for your queries below,
Query – 1: “I have a grid for which I created a custom template for editing in Dialog mode. I have different validation rules for the fields. The problem is that the text for the rules is not displayed correctly.”
We checked your query and reported problem with the provided screenshot from our end. Based on that we would like to let you know that on using custom dialog template, you need to customize the edit controls position (using the form spacing styles) and the edit dialog height/width to fit with your scenario.
For e.g., We have rendered edit input controls as 3 in one row and 4 in the next one. On doing so the validation rules will be displayed on top of each other due to spacing not provided properly for the custom controls. This can be seen in the below image,
This case can be resolved by increasing the dialog height and width in the Grid’s actionComplete event which will then display the validation messages as shown in the below image,
So similarly, you can use this approach of customizing the edit control and edit dialog position to resolve your problem.
We have prepared a sample to demonstrate this for your reference. You can find it below,
Query – 2: “Also the date field is not displayed OK when editing a grid record.”
We checked this case from our end but unfortunately were unable to reproduce it as the date picker was rendered properly for Grid editing. You can check this case in the above shared sample.
So please share us the following additional details to validate further on this,
- Are any console errors thrown? If so please share it.
- Let us know the value that is getting set here – “value: new Date(this.state.VATpayerfromdate),” in the edit date picker control.
- Syncfusion package version used.
- If possible share us a simple sample to replicate the problem or try reproducing it in the above shared sample.
Let us know if you have any concerns.
Regards,
Sujith R