Hi there, im trying the telerik controls, and i wanted to know if is possible to trigger an alert after uploading a file in edititem template.
this is my code-behind
And this is my javascript which is quite simple.
Im using radajaxmanager to ajaxified radgrid.
any help would be appreciated.
regards
this is my code-behind
Protected Sub rgOferta_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgOferta.ItemDataBound
If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then 'popup&editform Dim edititem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem) Dim RadUpload1 As RadUpload = DirectCast(edititem.FindControl("RadUpload1"), RadUpload) Dim btns As Button = e.Item.FindControl("btnPrueba") Dim estado As String = "" If Not btns Is Nothing Then If Not RadUpload1 Is Nothing Then estado = UploadFile(RadUpload1) btns.OnClientClick = "showAlert('" & estado & "'); return false;" End If End If End If
end sub
And this is my javascript which is quite simple.
function showAlert(valor) {
alert(valor);
}Im using radajaxmanager to ajaxified radgrid.
any help would be appreciated.
regards