How can i change EmptyMessage?

3 posts, 0 answers
  1. Ivan
    Ivan avatar
    2 posts
    Member since:
    Apr 2013

    Posted 03 Oct 2013 Link to this post

    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. Ivan
    Ivan avatar
    2 posts
    Member since:
    Apr 2013

    Posted 03 Oct 2013 Link to this post

    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="">
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 08 Oct 2013 Link to this post

    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.
Back to Top