Hi ,
I am getting error with the DataFormatString property of a BoundDataField of WebHierarchicalDataGrid . I am binding a date time value as string to the BoundDataField . This is causing the issue in chrome browser. please find below the tag which i am using.
<ig:BoundDataField DataFieldName="DisplayDateTime" DataFormatString="{0:MM/dd/yyyy hh:mm:ss}" Key="DisplayDateTime" > <Header Text="DisplayDateTime" />
it is throwing javascript error when page is displayed. following is the javascript error.
Failed to execute 'setAttribute' on 'Element': '39' is not a valid.
Let me know how can format the string to datetime format.
Thanks,
Kiran
Hello Kiran,
I followed the steps you suggested and was unable to reproduce the behavior you're describing.
I have created a sample application of WebHierarchicalDataGrid with ‘date’ boundColumn in the parent grid and to this ‘Date’ column I have provided the DataFormatString as "{0:MM/dd/yyyy hh:mm:ss}". When I run the sample and edit the ‘Date’ cell it goes give me date format as mentioned with no error.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.
My test was performed using version 16.2.20162.1023
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back,
or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Hi,
In the Sample Please change the Data type of the date column to string and give date time in string format. then this is throwing an error. So is it mandatory to give date type as DateTime when we use DataFormatString as "{0:MM/dd/yyyy hh:mm:ss}" .
I have attached the sample after modifying the date column data type as datetime .
Please find the attachment for my earlier response.
Thank you for providing modified sample application.
As per your instruction, I have modified my sample, I changed the Data type of the date column to string and gave date time in string format and when I run the sample, it is working as expected.
It is not throwing any error.
In the sample application you provided I noticed that you commented out the version of 16.1 and 16.2 and added version 10.2.
I would like to know which version of Infragistics you are using?
Looking forward to hear you back.
Hi Divya Jain,
we are using version 10.2 .and i am using chrome browser.
For upgrading to Version 16.6 do we need to upgrade our license or with same license we can upgrade to the new version?
A label is mentioned "Your 30-day free trial of ASP.NET priority support will end on 4/5/2017." How is this priority support provided to me.I have been using this from a long time. i am not a new user. If priority support is over , will not my questions be answered ?