Hello,
I have some questions about the insert, update and delete RadGrid:
1) By deleting a record, I want to display a yes/no alert. If the user confirm then the record is deleted, If not, then the alert is closed and the record stay. How can I do that?
2) I cant display a radwindow from the edit form, why? and how can I do that?
3) Before executing the delete action, I need to retrieve a specific value from the deleted record, for example the value which displayed in the "PagNam" column in order to remove the file with the name "PagNam" by deleting the record.
How can I do it?
Please, I need your hep,
It is appreciated to send me a sample code with an explaination.
Regards,
Bader
Hi,
I am using a user control in a radwindow manager. I using a simple requiredfiled validator on my user control, But if I add ny validator the rad window doesn't get open at all. Below is code on my page.
<telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" KeepInScreenBounds="True"
Modal="True" Animation="Fade" ID="RadWindowManager1" EnableShadow="false" ShowOnTopWhenMaximized="false"
Width="425" Height="525" DestroyOnClose="True" Behavior="Default" InitialBehavior="None"
OnClientClose="OnClientClose">
<Windows>
<telerik:RadWindow ID="RadWindowContactEditor" runat="server" Width="430" Height="350">
<ContentTemplate>
<uc7:ucCustomerContactEdit ID="ucCustomerContactEdit1" runat="server" />
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <asp:Button ID="Button1" runat="server" Text="Button" /> <telerik:RadComboBox ID="cbxProva" runat="server"> </telerik:RadComboBox> </div> </form></body></html>Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click cbxProva = CaricaComuni("LE") End SubPublic Function CaricaComuni(ByVal Provincia As String) As RadComboBox CaricaComuni = New RadComboBox Try Dim sql As String sql = "SELECT IdComune, Comune FROM Sys_Comuni WHERE Provincia = @Provincia AND RecordEliminato = 0 ORDER BY Comune" Dim adapter As New SqlDataAdapter(sql, connStr) adapter.SelectCommand.Parameters.Add("@Provincia", SqlDbType.Char).Value = Provincia Dim dt As New DataTable() adapter.Fill(dt) CaricaComuni.DataSource = dt CaricaComuni.DataTextField = "Comune" CaricaComuni.DataValueField = "IdComune" CaricaComuni.DataBind() CaricaComuni.Items.Insert(0, New RadComboBoxItem("", "")) Catch ex As Exception 'MessageBox(ex.Message, ex.StackTrace.Substring(ex.StackTrace.LastIndexOf("\") + 1)) End Try End Function