<
telerik:GridCheckBoxColumn
DataField
=
"Active"
HeaderText
=
"Is Active"
SortExpression
=
"Active"
UniqueName
=
"Active"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"EqualTo"
ShowFilterIcon
=
"false"
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"ImportedFilter"
runat
=
"server"
OnClientSelectedIndexChanged
=
"ImportedFilterSelectedIndexChanged"
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Active").CurrentFilterValue %>'
Width="70px">
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"NoFilter"
Value
=
""
/>
<
telerik:RadComboBoxItem
Text
=
"Yes"
Value
=
"1"
/>
<
telerik:RadComboBoxItem
Text
=
"No"
Value
=
"0"
/>
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock12"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function ImportedFilterSelectedIndexChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
var filterVal = args.get_item().get_value();
if (filterVal == "") {
tableView.filter("Active", filterVal, "NoFilter");
}
else if (filterVal == "1") {
tableView.filter("Active", "1", "EqualTo");
}
else if (filterVal == "0") {
tableView.filter("Active", "0", "IsNull");
}
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridCheckBoxColumn
>
Hello,
When using a RadComboBox with AllowCustomText 'true' the combobox exhibits some _very_ annoying behaviour. Every time you click into the control it automatically selects the entire contents, and it is then very difficult to unselect.
This makes is very hard to do many things, including:
a) adding multiple items simply - aka by repeatedly selecting items from the completion list and having them appended to the combobox text
b) add a custom entry manually
c) edit an entry
d) manually insert an entry between existing entries
e) select an entry from the completion list to be inserted between existing entries
f) etc
Does anybody know a solution to this problem? How do I stop the auto-selection of content every time this control is selected?
Hi,
Last week you helped me with the RadEditor in RadWindow example code. Now, to open the RadWindow the following javascript is used:
$find("<%=DialogWindow.ClientID%>").show();
When I normally open a RadWindow use the openRadWindow command. With this command I can pass a query string:
openRadWindow("Dialog.aspx?iid=" + iid, "DialogWindow);
My question is how can I add a query string to the .show() method of displaying the window? The reason for the question is that with the openRadWindow the content of the parent editor is not passed to the child editor.
Thanks,
Steve Holdorf
Note: the reason I need to pass the querystring on displaying the radwindow is because the application's patient ID is maintained in the applications querystring passed to every page and window.
OK Last note: I might be wrong about the showing of the radwindow blowing out the parent page's query string. All I know is that when we try to retrieve it session object using the querystring the session object is not found.
Thanks again!