Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
Filtering with DateTime format g
posted

I have several datetime columns like this

<ig:BoundDataField DataFieldName="DateCreated" Key="DateCreated" DataType="System.DateTime" 

DataFormatString="{0:g}">

  <Header Text="Date Created" />
</ig:BoundDataField>

All works well until I try to filter on that date. When the user types into
the filter rows edit box and hits enter. A javascript error happens in


function Date$_expandFormat

Your switch statement doesn't appear to handle the "g" format case. I need
to show shortdate + shorttime or "12/12/2011 12:15 PM"

Is there anything I can do to allow filtering in this scenario? Is there anyway
to prevent the user from typing in the filter row? Thus only allowing them to
select one of the predetermined filter row values?

Parents
No Data
Reply
  • 7566
    posted

    Hello Nuhfeken,

     

    Thank you for posting this in our community. I was able to reproduce the described situation and I logged this as an issue in our tracking system. I will contact you with information around its progress

     

    Thank you for the feedback.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://www.infragistics.com/support

Children
No Data