User Profile & Activity

Sachin Jain Member
Page
of 5
Hi Erwin,

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()

regards

Sachin


Hi Erwin,
Thanks for the solution. It works; but we used such functionlity in multiple pages which require to change manually in all pages. Could you suggest some easier fix which do not require to change in every grid pages. Did I miss something ! What is "ASPNET-368" and is it possible that we can use easily in our application ?

Thanks again for your help !
regards
Sachin
Hi Erwin,
Thanks for the fix and it is working fine for both mutiple selection and height issue. Although, there is small bug.
If you set SelectedCell style Backcolor even the it is not working as per desired color. Alhough same work for IE comp mode.
<SelectedCellStyle BackColor="Firebrick" HorizontalAlign="Center"></SelectedCellStyle>

I further check markup. I am posting cell markup; may be it will help you to know the reason behind this.
For Normal mode
<td class="WCR2_InboundCellStyle" style="text-align: center; font-family: Segoe UI, Tahoma; font-size: 8pt; font-weight: normal; vertical-align: middle; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; background-color: rgb(253, 199, 77) !important;" unselectable="on" y="2016" m="4" d="18" cssname="WCR2_InboundCellStyle">


For comp mode
<td class="WCR2_InboundCellStyle" style="text-align: center; font-family: Segoe UI, Tahoma; font-size: 8pt; font-weight: normal; vertical-align: middle; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFB22222 , endColorstr=#FFB22222, GradientType=1); background-color: firebrick;" unselectable="on" y="2016" m="4" cssName="WCR2_InboundCellStyle" d="18">

The complete control's HTML is
<div style="width: 100%; text-align: center;">
<div style="display:inline-block;" >
<ISWebEssentials:WebCalendar ID="WebCalendar1" runat="server" HighlightTodayDate="false" Height="540px" Width="685px" CalendarItemWidth="170px"
CalendarItemHeight="187px" EnableMultipleSelection="True" EnableKeyboardSupport="true" NumberOfCalendarDisplayed="12" ShowWeekNumbers="false">
<HeaderStyle BackColor="White" Font-Bold="true" Font-Names="Franklin Gothic Demi Cond" Font-Size="12pt" HorizontalAlign="Center">
</HeaderStyle>
<TableStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px">
</TableStyle>
<FrameStyle Font-Names="Segoe UI, Tahoma" BorderStyle="None" BackColor="White">
</FrameStyle>
<WeekNameStyle Font-Names="Segoe UI, Tahoma" Font-Bold="true" BackColor="#e5e5e5" HorizontalAlign="Center">
</WeekNameStyle>
<SelectedCellStyle BackColor="Firebrick" HorizontalAlign="Center"></SelectedCellStyle>
</ISWebEssentials:WebCalendar>
</div>
</div>

Thanks again for speedy solution. It would be great if you can check selectedCellStyle also.
regards
Sachin

 Hi Erwin,

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

Hi Erwin,
Since you can not replicate the issue in samples which I sent earlier ! So, I am attaching a fresh sample with only Webcalendar on it and no css is used except "width: 100%; text-align: center;" . It is causing same issue.

regards
Sachin
Hi Erwin,
Thanks for your quick reply.
Multiple selection issue is fixed. Would you mind to confirm from dev team that when we can expect fix of height issue?
Actually, We are getting some Javascript error for webgrid date column having FilterEditType.CalendarCombo. So, we were thinking that may be javascript files also needed.  Please, allow me to create a sample and some screenshot then I will post that in Webgrid segment.

Thanks again for speedy solution. It was highly needed beacause our some functionality was broken.
regards
Sachin

Hi Erwin,
Thanks for the speedy solution. On deployement server we put intersoft generated dll files only like ISNet.dll etc. Although we put dll files on our deployement bin folder after compile it but given solution not working. From your mentioned steps it seems that js files also need to replace.
Since, we do not put common library js files on our deployment machine so may be it is not working for that reason. Which path should we put js files and is any particular setting needed in webconfig for this?

regards
Sachin
Posted: April 1, 2016 12:45 PM
Hi Erwin,
              Thanks for prompt reply and suggestion.               
              Since we have latest release from intersoft; so we will migrate slowly. As you know migration require a lot of work . Meanwhile if you suggest some small fix that would be nice.
              I believe that there would be some setting also exists for such condition and would be a small fix. I attach an image in which text data is correctly shown but adding data from webcombo is not as desired. I would be really nice if you can suggest setting which would help us to get desired result.
regards
Sachin

Hi Erwin,
As per your suggestion I removed AutoHeight property from Dynamic Grid and changed DynamicGrid Height same as panel ie, 450 px.
Now issues are nearly same as earlier
First Grid height is proper. But third grid height is not proper; although it has 12 rows but its height is somehow adjusted like second grid which has 1 row only. Rest of grid's height are also not proper.

I am attaching modified sample and screenshot of pages .

regards
Sachin

Hi Erwin,
                Thanks for your support. But provided solution was not working for earlier page. SInce, requirement changed and we use rowchecker column so  modified page works so your suggested solution also.
 regards
Sachin
All times are GMT -5. The time now is 12:55 AM.
Previous Next