or
...
ElseIf
e.CommandName =
"InitInsertElement"
Then
e.Canceled =
True
Dim
newValues
As
System.Collections.Specialized.ListDictionary =
New
System.Collections.Specialized.ListDictionary()
newValues(
"IncludeInTotal"
) =
True
'IF THE CostType CELL IN THE PARENT ROW = UnitCost THEN HIDE THE uxIncludeInTotal CHECKBOX ON THIS INSERT FORM
DirectCast
(e.Item, Telerik.Web.UI.GridDataItem).ChildItem.NestedTableViews(0).InsertItem(newValues)
ElseIf
.....
If
CType
(editedItem.FindControl(
"uxAddNewAfterSave"
), CheckBox).Checked
Then
Dim
parentItem =
CType
(e.Item.OwnerTableView.ParentItem, Telerik.Web.UI.GridDataItem)
parentItem.FireCommandEvent(
"InitInsertElement"
,
String
.Empty)
End
If
a.RadForm_Hay:hover .rfdInner {color: #ACB936 !important;}
<
telerik:GridBoundColumn
AllowFiltering
=
"true"
AllowSorting
=
"true"
DataField
=
"Accountrole.Name"
HeaderText="<%$ Resources:Administration,Role %>" UniqueName="Accountrole.RoleId">
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"RadComboBoxRole"
DataSourceID
=
"RoleDataSource"
DataTextField
=
"Name"
DataValueField
=
"RoleId"
AppendDataBoundItems
=
"true"
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Accountrole.RoleId").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="RoleIndexChanged">
<
Items
>
<
telerik:RadComboBoxItem
Text="<%$ Resources:Basic,All %>" />
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function RoleIndexChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("Accountrole.RoleId", args.get_item().get_value(), "EqualTo");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridBoundColumn
>
protected
void
MyCustomControl_ItemSelected(
string
returnedValue)
{
var control = (RadGrid1.EditItems[0]
as
GridEdittableItem).FindControl(
"MyCustomTextBox"
);
if
(control !=
null
)
{
control.Text = returnedValue;
}
}
Hi,
I try to add the Save and Cancel buttons to a RadEditor’s Toolbar by using the approach on the http://www.telerik.com/help/aspnet-ajax/addingsaveandcancelbuttonstoolbar.html page. When I run the code, I have the javascript error: “Microsoft JScript runtime error: 'RadEditorCommandList' is undefined”. Could you please let me know what I am missing?
Thank you