iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I am facing two problems for calendar control inside webgrid into webgrid into
Windows 10 Internet Explorer 11 (Normal mode).
Normal Mode means NOT ADDED IN compatibility view settings
1. Calender is not working inside webgrid.
2. In compatibility mode, calender is not generating properly see attachment.
Please help me out ASAP.
Regards
Sachin Jain
I tried replicating your issue by using EditType="CalendarCombo" and EditType="CalendarDropdown" as well as configuring the IE 11 to normal mode and compatibility mode, but unfortunately this doesn't happen.
Would you send me a sample that could replicate your reported issue? Also, what did you mean by 'calendar control inside webgrid into webgrid'? Are you using Hierarchical structure?
By the way I'm using WebGrid 10.
Best Regards,Erwin Sanders
I attached a simple webpage which uses NORTHWIND database's orders table. I added finding on each images. Fo testing purpose we use Win 2008 R2, Win 2012 and Win 10 Pro machines. Details are also added in images. Are we missing some javascripts ?
regards
Sachin
Hello Sachin,
This issue's been addressed under ASPNET-368. In the meantime the best workaround would be using VistaCalendar to replace the CalendarCombo. First set the EditType to Custom, then set the CustomEditorName to VistaCalendar, and change the FilterEditType value to SameAsEditType. Here's the example:
... if (MyColumn.Name == "RequiredDate" || MyColumn.Name == "ShippedDate" || MyColumn.Name == "OrderDate") { MyColumn.EditType = EditType.Custom; MyColumn.CustomEditorName = "VistaCalendar"; MyColumn.FilterEditType = FilterEditType.SameAsEditType; } ...
Hope this helps.
ASPNET-368 is a ticket that we use to address issue from users to improve our products. It's queued for fix by our dev team. So far, I think that'd the best workaround for the moment, I'll look more into it. Is it possible to find and replace them? You could also try using external text editor software like Sublime Text for easier use.
The solution you provided has a bug which can be replicated by following these steps. Try to filter OrderDate column by picking 12th April 2016 from calender and try to filter as "Equals To". It will work fine. Then without clearing date, pick another date as 30th April 2016 and try to filter as "Equals To" ; you will saw unhandled error which detail I will add in quote. There is strange thing. If you add date in filter column first time as 30th April 2016 then it works without any issue. But after that even if you will choose 1st April 2016 then you will saw an unhandled error.To make sure that I applied your provided solution properly; I am attaching modified pages also.
Is any way by which background color of calendar can remove ! We like look of calendar of FilterEditType "CalendarCombo" without yellowish backcolor. I tried intersoft resource http://developer.intersoftsolutions.com/display/WebUI/Built-in+Custom+Editor . But I was not able to see any VistaCalendar on that link.
Stack trace and other detail is copied below .
Page ErrorAn unexpected error occurred in: http://localhost/WebGridWithDateColumExp.aspx. String was not recognized as a valid DateTime.Stack Trace: at System.DateTime.Parse(String s, IFormatProvider provider) at System.Data.ConstNode..ctor(DataTable table, ValueType type, Object constant, Boolean fParseQuotes) at System.Data.ExpressionParser.Parse()
Hi Sachin,
The error (String was not recognized as a valid DateTime) is caused by unmatched dateformat string where in the filter it's "dd/MM/yyyy" and the cell data is "dd/MM/yyyy HH:mm", so I suggest you to set them to the same format such as "dd/MM/yyyy". For example:
... if (MyColumn.Name == "RequiredDate" || MyColumn.Name == "ShippedDate" || MyColumn.Name == "OrderDate") { MyColumn.DataFormatString = "dd-MM-yyyy"; MyColumn.EditType = EditType.Custom; MyColumn.CustomEditorName = "VistaCalendar"; MyColumn.FilterEditType = FilterEditType.SameAsEditType; } ...
This code has been tested and it should work fine.
About the background color problem, I just noticed it and it seems that this is a problem from our internal code. In the meantime, you can hack the style through the css like this:
<style> .WSB1_CalendarInboundCellStyle { background - color: transparent !important; } </style>
This should remove the background color of the Vista Calendar.
Hi Erwin,Background color solution works and we use your provided temp solution of VistaCalendar for our most used webpage. We are looking for Intersoft Dev team's solution for "ASPNET-368". We need to change in more than 50 pages which also require to retest the pages so we are relying on intersoft Dev team's solution.Please, allow me to share our testing result in brief for "VistaCalendar" and "CalendarCombo".CalendarCombo : Host Server : Win Server 2008 Calendar appear on click on calendar icon for IE 11 normal and comp mode for Windows 7 Pro test machine and Windows 10 Pro. Only problem is that it is not appearing in proper place for IE 11 normal mode but appear on proper place for IE 11 comp mode. Host Server : Win Server 2012 Calendar does not appear on click on calendar icon for IE 11 normal mode.Host Server : Win Server 2008 R2 Calendar does not appear on click on calendar icon for IE 11 normal mode.VistaCalendar :with DataFormatString Host Server : Win Server 2008 (not tested)Host Server : Win Server 2012 reported crash was happening for IE 11 normal mode.Host Server : Win Server 2008 R2 No crash ie, working fine.For all cases test machine was Windows 10 Pro otherwise mentioned. We will start using Win Server 2016 with other test servers. For all cases test machine was Windows 10 Pro otherwise mentioned. We will start using Win Server 2016 once it is available with other test servers once it is available .
Thank you for your information Sachin. I just checked with our dev team and currently they are still working on ASPNET-368.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname