<
telerik:RadComboBox
ID
=
"comboBoxGroupSelection"
runat
=
"server"
EmptyMessage
=
"Search for a group"
MarkFirstMatch
=
"True"
AllowCustomText
=
"False"
MaxHeight
=
"300"
OnSelectedIndexChanged="comboBoxGroupSelection_SelectedIndexChanged"
AutoPostBack
=
"True"
> </
telerik:RadComboBox
>
Private
Sub
bindGroups()
Dim
Group
As
New
Groups
Dim
resultSet
As
DataSet = Group.GetItems(xmlFile.DBConnect)
Dim
resultView
As
DataView = resultSet.Tables(0).AsDataView()
resultView.Sort =
"createdDt desc"
comboBoxGroupSelection.DataValueField =
"id"
comboBoxGroupSelection.DataTextField =
"name"
comboBoxGroupSelection.DataSource = Group.GetItems(xmlFile.DBConnect)
comboBoxGroupSelection.DataBind()
End
Sub
Protected
Sub
comboBoxGroupSelection_SelectedIndexChanged(
ByVal
Sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
AddGroup(**SELECTEDVALUEHERE**)
End
Sub
<
telerik:GridRatingColumn
HeaderText
=
"Completion Status"
DataField
=
"CompletionStatus"
UniqueName
=
"CompletionStatus"
AllowFiltering
=
"false"
ItemCount
=
"10"
Precision
=
"Exact"
ReadOnly
=
"true"
>
</
telerik:GridRatingColumn
>
double
ratio = (totalCount - unapprovedCount) / totalCount;
 
rating.ItemCount = 10;
rating.Value = (
decimal
)Math.Round(ratio * 10, 1);
rating.ToolTip = Math.Round(ratio * 100, 0).ToString() +
"%"
;
I just want the tooltip to say 18% if the ratio is 2/11. It says 1.8.
Any ideas?
I'm having a problem with combobox doing an AutoComplete (ie markfirstmatch="true") when the cases don't match, and there are similar selection values. For example:
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
AllowCustomText
=
"True"
MarkFirstMatch
=
"True"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
/>
<
telerik:RadComboBoxItem
Text
=
"PAY"
Value
=
"PAY"
/>
<
telerik:RadComboBoxItem
Text
=
"PAYB"
Value
=
"PAYB"
/>
</
Items
>
</
telerik:RadComboBox
>
<
asp:Button
ID
=
"Postback"
runat
=
"server"
Text
=
"Post"
OnClick
=
"Postback_Click"
/>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
""
></
asp:Label
>
protected void Postback_Click(object sender, EventArgs e)
{
Label1.Text = RadComboBox1.Text;
}
When tabbing into the field (not clicking) so that the drop down does not open up, you try to type "PAYB", but in lower case. As you type, the box starts to find "PAY", but then when you type the last "b", the result is "PAYb". It does not find PAYB as expected.
What's even more concerning is that tabbing out and posting back, the combobox's text property is set to "PAY". (See screenshot attachments).
I've tried some possible solutions. I've tried using the Filter property. That works well when the drop down is opened, but when it is closed (ie tabbed into the field), you lose the AutoComplete functionality.
Is this solvable without using some javascript? If not, would doing some javascript to change lowercase to uppercase as the user types work? I'm not very well versed with javascript, so I don't know how that would look.
Thanks for the help!