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

[Solved] date format in filter UI

3 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 14 Jun 2010, 10:28 AM
Hello,

I am using the MVC Grid and all is working fine except that the date format used in the filter UI is different to the one I have specified in web.config.

<globalization uiCulture="en" culture="en-IE" />

I have just updated to 2010.1.518.235 but that has not resolved the issue. Can you please tell me how I can get the filtering to use the same format as everything else?

Thanks,
John


3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Jun 2010, 08:11 AM
Hi John,

To achieve your goal you need to turn on the globalization of the components. You can accomplish this with Globalization(...) method of ScriptRegistrar component. For more information you can check this online help topic.

Best wishes,
Georgi Krustev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Prasanna
Top achievements
Rank 1
answered on 10 Nov 2011, 01:17 PM
Hi Georgi ,
I want to add date format to datetime column filter.
I have created column start date and end date .after that i have added filter to that.
I want format of filer is dd/MM/yyyy.But it is showing me d/M/yyyy.
How to do that?
I have used below code but its not working.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridFilteringItem)
        {
            RadDatePicker picker = ((GridFilteringItem)e.Item)["DateTimeColumn"].Controls[0] as RadDatePicker;
            if (picker != null)
            {
                picker.DateInput.DateFormat = "dd/MM/yyyy";
            }
        }
    }
waiting for your reply.
0
Petur Subev
Telerik team
answered on 11 Nov 2011, 04:46 PM
Hi Prasanna,

Your question is related to the Rad ASP.NET Ajax components while this is the MVC forum. Here is a link to the ASP.NET AJAX forum.



Best wishes,
Pesho
the Telerik team
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Prasanna
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or