I am attempting to disable ajax for an upload control, which is enclosed in a usercontrol that is used for edits/inserts/etc. I am following the example found here: http://demos.telerik.com/aspnet-ajax/Controls/Examples/Integration/RadUploadInAjaxifiedGrid/DefaultCS.aspx?product=grid,
However,
Always fails because
Does not find my upload control, presumably because it is in the usercontrol. How would I go about finding the RadUpload within the UserControl in order to disable the ajax and upload files?
However,
| var upload = $find(window['UploadId']); |
Always fails because
| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
| { |
| RadUpload upload = (RadUpload)e.Item.FindControl("RadUpload1"); |
| RadAjaxPanel1.ResponseScripts.Add(string.Format("window['UploadId'] = '{0}';", upload.ClientID)); |
| } |
| } |
Does not find my upload control, presumably because it is in the usercontrol. How would I go about finding the RadUpload within the UserControl in order to disable the ajax and upload files?