Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:GridBoundColumn
DataField
=
"ShipCity"
FilterControlAltText
"Filter ShipCity column"
HeaderText
SortExpression
UniqueName
>
FilterTemplate
telerik:RadComboBox
ID
"Status"
DataSourceID
"SqlDataSource1"
DataTextField
DropDownWidth
"200px"
DataValueField
Height
"100px"
AppendDataBoundItems
"true"
Skin
"Windows7"
SelectedValue='<%# Container.OwnerTableView.GetColumn("ShipCity").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="StatusIndexChanged" AllowCustomText="false">
Items
telerik:RadComboBoxItem
Text
"All"
/>
"IsNull"
Value
"Null"
</
telerik:RadScriptBlock
"RadScriptBlock2"
runat
"server"
script
type
"text/javascript"
function StatusIndexChanged(sender, args) {
var tableView = $find("<%# Container.OwnerTableView.ClientID %>");
var value = args.get_item().get_value();
if (value == "Null") {
tableView.filter("ShipCity", args.get_item().get_value(), "IsNull");
}
else {
tableView.filter("ShipCity", args.get_item().get_value(), "EqualTo");