or
Hi there i have a radgrid on which i have to find a value and if the item is found then generate message
below is my code:
Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnAdd.Click If IsAlreadyExist() Then ram.Alert("") Else If IsAlreadyAdded() Then ram.Alert("") Else employees() End If End If End SubPrivate Function IsAlreadyAdded() As Boolean 'If rgListnk.MasterTableView.Items.Count > 0 Then Dim itm As GridDataItem = rg.MasterTableView.FindItemByKeyValue("DEFAULT", "Y") If IsNothing(itm) Then Return False Else Return True End If End Function<KeyboardNavigationSettings AllowSubmitOnEnter="true" EnableKeyboardShortcuts="true" /><table style="text-align: center; width: 250px;"> <tr> <td> To provide an argument, fill in the value and click on "Close with argument" button below:<br /> <br /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /> <br /> <asp:Button ID="Button1" runat="server" Text="Close RadWindow" OnClientClick="Close();return false;" /><br /> <br /> <asp:Button ID="Button2" runat="server" Text="Close with argument" OnClientClick="CloseWithArg();return false;"/> <br /> RadButton1 is added by myself,but the OnClientClicked event does not work. <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClientClicked="Close();return false;"></telerik:RadButton> </td> </tr></table>