Jan 14, 2010, 1:40 PM
[CLOSED] [1.0] Referencing User Controls using #{}
I have a user control that encapsulates the functionality of the date range that you have posted in the examples explorer:
ctl00_ContentPlaceHolder1_Criteria1_ClaimSelector1 _LossDate_FromDate
What is the correct #{} syntax to get that ClientID?
Thanks
<ext:MultiField ID="MultiField1" runat="server" FieldLabel="Test" Cls="nowrap-group">
<Fields>
<ext:DateField runat="server" ID="FromDate" Vtype="daterange" Width="80" />
<ext:Label ID="Label1" runat="server" Text="to" ForID="ToDate" Width="10" />
<ext:DateField runat="server" ID="ToDate" Vtype="daterange" Width="80">
<Listeners>
<Render Handler="this.startDateField = '#{FromDate}'; #{FromDate}.endDateField = '#{ToDate}';" />
</Listeners>
</ext:DateField>
</Fields>
</ext:MultiField>
I initially tried to extend the MultiField and but I ran into a problem where I could clear the dates, set the dates but I couldn't figure out how to get the dates client side. So now I add the user control shown above to a page and it works great: <ext:Panel ID="Panel17" runat="server" Border="false" >
<Content>
<uc1:DateRange ID="LossDate" runat="server" LabelText="DAte" />
</Content>
</ext:Panel>
There is a store on the page and i want to include the fromdate value in the store params. what is the correct #{} to reference the from date? I have tried:<ext:Parameter Name="DateOfLossFrom" Mode="Raw" Value="#{LossDate}.#{FromDate}.getValue()" />
<ext:Parameter Name="DateOfLossFrom" Mode="Raw" Value="#{LossDate}.FromDate.getValue()" />
and a couple of other variations. If I look at view source it shows as:ctl00_ContentPlaceHolder1_Criteria1_ClaimSelector1 _LossDate_FromDate
What is the correct #{} syntax to get that ClientID?
Thanks