Current filter:
                                You should refresh the page.
                                  • Hello,

                                    I would like to change dateformat dd/MM/yyyy in display of xtrareport parameter. Is it possible?

                                    Thanks.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello,

                                You can use the XRLabel.TextFormatString property to specify the output format for the label's bound value. Review the screencast in the attachment for more information.

                                See also:
                                Format String Editor

                                Thanks,
                                Elliot

                                • Customer82837 10.07.2019

                                  Hello,

                                  Sorry I mean in parameter preview. Not in XRLabel. Please kindly check in attachment.

                                  Thanks.

                                • Elliot (DevExpress Support) 10.07.2019

                                  Hello,

                                  Thank you for your clarification. In this case, you can implement your own custom editor for the report parameter by handling the CustomizeParameterEditors client-side event. Use the dxDateBox.displayFormat property to set the date format in the editor. Here is a corresponding code snippet

                                  [HTML]
                                  <script type="text/html" id="diva-date-time"> <div data-bind="dxDateBox: { value: value.extend({ throttle: 500 }), closeOnValueChange: true, format: 'datetime', disabled: disabled, formatString: 'dd/MM/yyyy HH:mm', displayFormat: 'dd/MM/yyyy HH:mm' }, dxValidator: { validationRules: validationRules || [] }"></div> </script> <script type="text/javascript"> function ValidateParameters(s, e) { if (e.parameter.type === "System.DateTime") { e.info.editor = { header: 'diva-date-time' }; } } </script> <dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server" ClientSideEvents-CustomizeParameterEditors="ValidateParameters"> </dx:ASPxWebDocumentViewer>

                                  Thanks,
                                  Elliot

                                • Customer82837 10.10.2019

                                  Thanks. The solution helped me.

                                • Elliot (DevExpress Support) 10.10.2019

                                  Hello,

                                  I am happy to hear that the issue is resolved. Do not hesitate to contact us in case of any difficulties.

                                  Thanks,
                                  Elliot