This is a migrated thread and some comments may be shown as answers.

How can i change EmptyMessage?

2 Answers 57 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 03 Oct 2013, 09:40 AM
I have the next Calendar, and inside a DateInput. Now the EmptyMessage is always "Fecha Informe", but i like change that with a data from a File of resources file.resx.... does somebody how?

<telerik:RadDatePicker ID="rdpDate" runat="server" Width="125px" Culture="es-ES" meta:resourcekey="rdpDateResource1">
                            <Calendar ID="Calendar1" runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                            </Calendar>
                            <DateInput ID="DateInput1" runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" EmptyMessage="Fecha informe" LabelWidth="64px" Width="">
                                <EmptyMessageStyle Font-Italic="True" ForeColor="Gray" />
                            </DateInput>
                            <DatePopupButton />
                            </telerik:RadDatePicker>

2 Answers, 1 is accepted

Sort by
0
Ivan
Top achievements
Rank 1
answered on 03 Oct 2013, 10:30 AM
I have this in File of resources file.resx.
txDataValue.EmptyMessage

and in input control
<DateInput ID="DateInput1" runat="server" DateFormat="dd/MM/yyyy"
DisplayDateFormat="dd/MM/yyyy" EmptyMessage="Fecha Informe" meta:resourcekey="txDataValue" LabelWidth="64px" Width="">
0
Eyup
Telerik team
answered on 08 Oct 2013, 07:29 AM
Hi Ivan,

You can use explicit localization to achieve the desired behavior:
http://msdn.microsoft.com/en-us/library/fw69ke6f%28v=vs.80%29.aspx

Or set  the localized text programmatically:
http://msdn.microsoft.com/en-us/library/ms227982%28v=vs.100%29.aspx

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Input
Asked by
Ivan
Top achievements
Rank 1
Answers by
Ivan
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or