Hello,
Has anyone had this issue? I haven't changed my code but I have about 3 grid combobox filters and once I use one once, then they all stop working.
Here is the code I use for one that is the same for all of them:
Has anyone had this issue? I haven't changed my code but I have about 3 grid combobox filters and once I use one once, then they all stop working.
Here is the code I use for one that is the same for all of them:
<
telerik:GridTemplateColumn
ColumnGroupName
=
"GeneralInformation"
DataField
=
"Status"
AllowFiltering
=
"True"
HeaderText
=
"Status"
UniqueName
=
"Status"
HeaderTooltip
=
"Status"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
HeaderStyle
Width
=
"60px"
BackColor
=
"Navy"
HorizontalAlign
=
"Center"
/>
<
EditItemTemplate
>
<
telerik:RadDropDownList
runat
=
"server"
ID
=
"Statusdrop"
DataValueField
=
"StatusID"
DataTextField
=
"Status"
DataSourceID
=
"StatusFilter"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"StatusCombo"
Skin
=
"Silk"
Height
=
"100px"
Width
=
"50"
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Status").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="StatusIndexChanged">
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"All"
Value
=
""
/>
<
telerik:RadComboBoxItem
Text
=
"G"
Value
=
"G"
/>
<
telerik:RadComboBoxItem
Text
=
"O"
Value
=
"O"
/>
<
telerik:RadComboBoxItem
Text
=
"Y"
Value
=
"Y"
/>
<
telerik:RadComboBoxItem
Text
=
"R"
Value
=
"R"
/>
<
telerik:RadComboBoxItem
Text
=
"M"
Value
=
"M"
/>
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock2"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function StatusIndexChanged(sender, args)
{
var tableView = window.$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("Status", args.get_item().get_value(), "EqualTo");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
ID
=
"StatusLabel"
Text='<%#Eval("Status") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>