| <telerik:RadComboBox ID="RadComboBoxFlight" runat="server" |
| DataTextField="NU_VUEL" DataValueField="ID_VUEL_CLIE" |
| EmptyMessage="Seleccione una aerolinea..." Height="100px" |
| OnClientItemsRequested="ItemsLoaded" |
| OnItemsRequested="RadComboBoxFlight_OnItemsRequested" Skin="Web20" |
| Width="180" /> |
Hello,
I have two RadCombo boxes on my page, I have customText = true for both the RadCombo boxes. Also, I have implemented the code for the client side OnClientKeyPressing & OnBlur events. In OnClientKeyPressing event I check if the user has hit the "Enter" key and if so, I am shifting the focus to the second RadCombo. The focus moves to the next Radcombo box as expected but it don't trigger the OnBlur of the First Radcombo box.
What should be done so that the OnBlur event of the first combo box is called when the focus moves to the second combo box.
Thanks,
Rajiv
function ToggleStartDateCalendarPopup()
{
$find(
"<%= dpStartDate.ClientID %>").showPopup();
}
<telerik:RadDatePicker ID="dpStartDate"
runat="server">
<DatePopupButton Visible="False"></DatePopupButton>
<DateInput onclick="ToggleStartDateCalendarPopup()">
</DateInput>
</telerik:RadDatePicker>
This works fine but I wanted to put the javascript into an include file. However the code stops working when I do this and I get this error
Message: 'null' is null or not an object
I also tried adding the javascript using registerclientscriptblock but got the same error message
Dim s As New StringBuilder
s.AppendLine(
"<script>")
s.AppendLine(
"function ToggleStartDateCalendarPopup(){")
s.AppendLine(
"$find(""<%= dpStartDate.ClientID %>"").showPopup();}")
s.AppendLine(
"function ToggleEndDateCalendarPopup(){")
s.AppendLine(
"$find(""<%= dpEndDate.ClientID %>"").showPopup();}")
s.AppendLine(
"</script>")
If Not Page.IsPostBack Then
'Page.ClientScript.RegisterClientScriptInclude("DatePopups", ResolveClientUrl("~/JavaScript/DatePopups.js"))
Page.ClientScript.RegisterStartupScript(
Me.GetType(), "DatePopup", s.ToString)
The error is presumably because of the data binding expressions. How can i fix this so I can have my javascript in an include file that can be shared among pages?
thansk
<input type="checkbox" checked="checked" />To
<span class="TreeNode" title="Details of Internal Organisational Strucutre">Internal Organisational Structure 3</span>
<input type="checkbox" checked="checked" id = "chkone"/>
<span class="TreeNode" title="Details of Internal Organisational Strucutre">
<label for = "chkone">Internal Organisational Structure 3</label>
</span>
<telerik:RadGrid AutoGenerateColumns="false" DataSourceID="sqlTradeList" AllowFilteringByColumn="true"
ID="RadGrid1" runat="server" AllowPaging="true" ShowGroupPanel="true" AllowSorting="true"
EnableViewState="false" Width="80%">
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView TableLayout="Auto" EnableHeaderContextMenu="true">
<Columns>
<telerik:GridHyperLinkColumn HeaderText="TradeId" DataTextField="TradeId" SortExpression="TradeId"
DataNavigateUrlFormatString="~/Trade/PackageDetails.aspx?InternalPackageId={0}&PackageId={1}"
DataNavigateUrlFields="InternalPackageId,PackageId" />
<telerik:GridDateTimeColumn HeaderText="Trade Date" DataField="TradeDate" DataFormatString="{0:dd/MM/yyyy}"
SortExpression="TradeDate" />
<telerik:GridBoundColumn HeaderText="Source System" DataField="SourceSystemName"
SortExpression="SourceSystemName" />
<telerik:GridBoundColumn HeaderText="Asset Class" DataField="AssetClass" SortExpression="AssetClass" />
<telerik:GridBoundColumn HeaderText="Product" DataField="ProductName" SortExpression="ProductName" />
<telerik:GridBoundColumn HeaderText="Trader" DataField="TraderName" SortExpression="TraderName" />
<telerik:GridDateTimeColumn HeaderText="Last Updated" DataField="LastUpdated" DataFormatString="{0:dd/MM/yyyy mm:hh:ss}"
SortExpression="LastUpdated" />
<telerik:GridBoundColumn HeaderText="Version" DataField="TradeVersion" SortExpression="TradeVersion" />
</Columns>
</MasterTableView>
<HeaderContextMenu >
</HeaderContextMenu>
<ClientSettings AllowColumnsReorder="true" AllowColumnHide="true">
<ClientEvents />
</ClientSettings>
<GroupingSettings ShowUnGroupButton="true" />
</telerik:RadGrid>