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
Sub
ClientScript.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
<
telerik:RadComboBox
ID
=
"radDropDeparture"
runat
=
"server"
Width
=
"350px"
EmptyMessage
=
"-- Depart from ---"
DataSourceID
=
"DataSourceDeparture"
DataTextField
=
"DepartureName"
DataValueField
=
"Id"
Skin
=
"Glow"
MaxHeight
=
"300px"
EnableAutomaticLoadOnDemand
=
"false"
EnableItemCaching
=
"true"
></
telerik:RadComboBox
>
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public
string
DestinationID
{
get
{
return
radDropDestination.SelectedValue;
}
set
{
if
(value ==
null
)
return
;
radDropDestination.DataBind();
RadComboBoxItem dest = radDropDestination.FindItemByValue(value);
radDropDestination.SelectedIndex = dest.Index;
}
}
<
AdvancedEditTemplate
>
<
scheduler:AdvancedForm
runat
=
"server"
ID
=
"AdvancedEditForm1"
Mode
=
"Edit"
Subject='<%# Bind("Subject") %>'
Description='<%# Bind("Description") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>'
DestinationID='<%# Bind("DestinationID") %>' DepartureID='<%# Bind("DepartureID") %>' />
</
AdvancedEditTemplate
>