Problem populating calendar editor

17 replies. Last post: September 20, 2010 11:48 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

After updating to R2 with the latest hotfixes I am experiencing a problem with the Webinput control. If I populate the value from codebehind using the Webflypostbackmanager I recieve a Javascript error (please see the attached image) and the value is not updated.


I have setup the component the following way:


<ISWebInput:WebInput ID="wiCommentDate" runat="server" Style="position: relative"
TabIndex="45" Width="100%">
<HighLight IsEnabled="True" />
<DisplayFormat IsEnabled="true" Format="yyyy-MMM-dd">
<ErrorWindowInfo IsEnabled="True">
</ErrorWindowInfo>
</DisplayFormat>
<DateTimeEditor IsEnabled="True" SkipNavigateHoliday="false">
</DateTimeEditor>
<ClientSideEvents OnAfterValueChanged="data_changed">
</ClientSideEvents>
</ISWebInput:WebInput>


Webflypostbackmanager is setup the following way:

 <ISWebDesktop:WebFlyPostBackManager ID="WebFly" runat="server" ServiceUrl="frmDebitorDetailIncome.aspx"
AutoEventWireup="true" ShowLoaderOnBusy="True" FlyPostBackSettings-PostInputControls="True"
FlyPostBackSettings-PostControlState="True" FlyPostBackSettings-PostViewState="True"
FlyPostBackSettings-PostHiddenFields="True" ViewStateItems="Behavior"
WebServiceResponseFormat="Json">
<LoaderTemplate>
<div style="font-family: 'Segoe UI'; font-size: x-small;">
<img src="../Layout/Images/is_progress-16.gif" align="absmiddle" />
Vent venligst...</div>
</LoaderTemplate>
</ISWebDesktop:WebFlyPostBackManager>


I update the component from codebehind by first setting the value and then using the following statements:

Me.wiCommentDate.CultureInfo.CultureInfo = System.Globalization.CultureInfo.CurrentCulture
Me.wiCommentDate.RequiresUIRefresh = True
Me.WebFly.ClientAction.UpdateViewState()
Me.WebFly.ClientAction.RefreshModifiedControls()


This worked fine in R1, so hopefully there is a way to getting it working again.


Best Regards,

Christian


1 attachment
All times are GMT -5. The time now is 10:01 PM.
Previous Next