or

Hi,
onFileSelected
get_row returns the row containing the file input field for the file that was just selected (<LI> element)
function RadAsyncUpload1_FileSelected(sender, args) {
var row = args.get_row();
var el = $(pRow);
var rowId = el.attr('id');
}| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddlSpecLIShipping.ascx.cs" |
| Inherits="AddlSpecLIShipping" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy42" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="chkShippFullQty"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="chkShippFullQty"/> |
| <telerik:AjaxUpdatedControl ControlID="pnlLIShippingDetails"/> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManagerProxy> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" EnableEmbeddedSkins="false" |
| Skin="AsiSkin" DecoratedControls="CheckBoxes" /> |
| <telerik:RadScriptBlock ID="rdScriptLIShipping" runat="server"> |
| <script language="javascript" type="text/javascript"> |
| function ddlShipToCountry_OnChange(ddlShipToLocationsClientID) { |
| setLocationToOTHER(ddlShipToLocationsClientID); |
| } |
| function setLocationToOTHER(ddlShipToLocationsClientID) { |
| var ddlShipToLocations = $find(ddlShipToLocationsClientID); |
| if (ddlShipToLocations) { |
| var item = ddlShipToLocations.findItemByValue("OTAD|"); |
| if (item) { item.select(); } |
| } |
| } |
| </script> |
| </telerik:RadScriptBlock> |
| <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Width="100%" AllowAutomaticUpdates="false" |
| AllowAutomaticInserts="false" AllowAutomaticDeletes="false" AutoGenerateColumns="False" |
| AllowPaging="true" AllowMultiRowEdit="false" Skin="AsiSkin" CssClass="AsiGreenCommandBar" |
| EnableEmbeddedSkins="False" ShowFooter="true" OnPreRender="RadGrid1_PreRender" |
| PageSize="6" |
| OnNeedDataSource="RadGrid1_OnNeedDataSource" OnItemDataBound="RadGrid1_ItemDataBound" |
| OnInsertCommand="RadGrid1_OnInsertCommand" OnDeleteCommand="RadGrid1_OnDeleteCommand" |
| OnUpdateCommand="RadGrid1_OnUpdateCommand"> |
| <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> |
| <MasterTableView Width="100%" ShowHeadersWhenNoRecords="true" CommandItemDisplay="bottom" |
| EditMode="EditForms" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" |
| DataKeyNames="DestinationID"> |
| <Columns> |
| ......... |
| ........ |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| ......... |
| ......... |
| <telerik:RadComboBox ID="ddlShipToCountry" runat="server" Skin="AsiSkin" CssClass="AsiRounded" |
| EnableEmbeddedSkins="false" AutoPostBack="true" DataTextField="CountryDisplayName" |
| DataValueField="Country_CD" OnSelectedIndexChanged="ddlShipToCountry_SelectedIndexChanged" |
| Width="220px" Height="100px"> |
| </telerik:RadComboBox> |
| </FormTemplate> |
| </EditFormSettings> |
| <CommandItemSettings AddNewRecordText="Add Another Destination" /> |
| </MasterTableView> |
| </telerik:RadGrid> |
| private void SetGridChildControlsClientEvents(GridEditableItem item) |
| { |
| .......... |
| .......... |
| RadComboBox cntrlShipToLocations = base.GetControlFromRadGridEditFormTemplate(item, "ddlShipToLocations") as RadComboBox; |
| RadComboBox cntrlShipToCountry = base.GetControlFromRadGridEditFormTemplate(item, "ddlShipToCountry") as RadComboBox; |
| cntrlShipToCountry.Attributes.Add("OnChange", "return ddlShipToCountry_OnChange('" + cntrlShipToLocations.ClientID + "');"); |
| } |