or
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="listbox.aspx.vb" Inherits="TestaTredjepartWeb.listbox" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Test</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="s" runat="server"> </asp:ScriptManager> <div> <telerik:RadListBox ID="rlb" runat="server" Width="330px" AllowReorder="true" EnableDragAndDrop="true"> <Items> <telerik:RadListBoxItem Text="<aaa>" /> <telerik:RadListBoxItem Text="<bbb>" /> <telerik:RadListBoxItem Text="<ccc>" /> <telerik:RadListBoxItem Text="<ddd>" /> <telerik:RadListBoxItem Text="<eee>" /> <telerik:RadListBoxItem Text="<fff>" /> <telerik:RadListBoxItem Text="<ggg>" /> <telerik:RadListBoxItem Text="<hhh>" /> </Items> </telerik:RadListBox> </div> </form></body></html>Protected Sub RadGrid1_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand If (e.CommandName = RadGrid.InitInsertCommandName) Then e.Canceled = True Dim loggedInUser = User.Identity.Name.ToString() Dim myDate As Date = Now() Dim defaultValue As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary() defaultValue("LastUpdated") = myDate.ToString() defaultValue("LastUpdatedBy") = loggedInUser.ToString() e.Item.OwnerTableView.InsertItem(defaultValue) End If End SubClientScript.RegisterStartupScript(
this.GetType(), "EnableCabType", "UncheckSelectAll('" + chkJobCategoryAll.ClientID + "','" + cblJobCategory.ClientID + "','" + cblCabinetType.ClientID + "','" + chkCabinetAll.ClientID + "');", true);
Seems the above script not at all fired in the ItemDataBound event of RadGrid's popup. Need this to be fired only from ItemDataBound
Any workarounds
Thanks
Regards
Raj
