or
function SelectedIndexChangedHandler(sender, args) {
var $ = $telerik.$;
if (args.get_item().get_value() == "NULL") {
var ResourceComboBox = $find($("[id$='Form_ResActivites']").attr("id"));
//var emptyItem = ResourceComboBox.findItemByText("Consultation");
var items = ResourceComboBox.get_items();
items.getItem(2).select();
}
}
<
telerik:GridTemplateColumn
DataField
=
"TypeObjectTypes"
FilterControlAltText
=
"Filter TypeObjectTypes column"
HeaderText
=
"Object Type"
UniqueName
=
"TypeObjectTypes"
>
<
EditItemTemplate
>
<
asp:CheckBoxList
ID
=
"CblObjectTypes"
runat
=
"server"
>
<
asp:ListItem
Value
=
"DynamicImage"
>Dynamic Image</
asp:ListItem
>
<
asp:ListItem
Value
=
"StaticURL"
>Static URL</
asp:ListItem
>
<
asp:ListItem
>Static Text</
asp:ListItem
>
<
asp:ListItem
Value
=
"DynamicScrolltext"
>Dynamic Scrolltext</
asp:ListItem
>
<
asp:ListItem
Value
=
"FreeText"
>Free Text</
asp:ListItem
>
<
asp:ListItem
>Object List</
asp:ListItem
>
</
asp:CheckBoxList
>
</
EditItemTemplate
>
<
ItemTemplate
>
<
asp:Label
ID
=
"TypeObjectTypesLabel"
runat
=
"server"
Text='<%# Eval("TypeObjectTypes") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
...
</
telerik:RadGrid
>
<
asp:ObjectDataSource
ID
=
"ObjectDataSource2"
runat
=
"server"
DeleteMethod
=
"DeleteLayoutType"
InsertMethod
=
"InsertLayoutType"
SelectMethod
=
"GetLayoutTypes"
TypeName
=
"LayoutTypesBLL"
UpdateMethod
=
"UpdateLayoutType"
>
<
DeleteParameters
>
<
asp:Parameter
Name
=
"TypeID"
Type
=
"Int32"
/>
</
DeleteParameters
>
<
InsertParameters
>
<
asp:Parameter
Name
=
"TypeName"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypeText"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypeObjectTypes"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypeMenu"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypePriority"
Type
=
"Int32"
/>
<
asp:Parameter
Name
=
"ProjectID"
Type
=
"Int64"
/>
</
InsertParameters
>
<
UpdateParameters
>
<
asp:Parameter
Name
=
"TypeName"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypeText"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypeObjectTypes"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypeMenu"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TypePriority"
Type
=
"Int32"
/>
<
asp:Parameter
Name
=
"ProjectID"
Type
=
"Int64"
/>
<
asp:Parameter
Name
=
"TypeID"
Type
=
"Int32"
/>
</
UpdateParameters
>
</
asp:ObjectDataSource
>