Greetings,
I have a page that has a CheckboxList on it which needs to have tooltips also. Seeing how CheckboxLists don't have that option, I decided to try using a RadToolTip. There is a problem though. It causes an error. Here is what I have thus far.
| public void SetSelectedModules(DTOCoP cop) |
| { |
| string url = BuildURL(Request.Url.ToString()); |
| foreach (ListItem li in cblModules.Items) |
| { |
| var hit = (from a in cop.Modules where a.ModuleID == Int32.Parse(li.Value) select a).FirstOrDefault(); |
| li.Selected = hit.Selected; |
| RadToolTip tip = new RadToolTip(); |
| tip.RelativeTo = ToolTipRelativeDisplay.Element; |
| tip.Text = hit.Description; |
| tip.TargetControlID = li.Attributes["ID"]; |
| tip.IsClientID = true; |
| this.cblModules.Controls.Add(tip); |
| } |
| } |
This is called during PageLoad, after setting the DataSource of the CheckboxList (cblModules). The page loads fine till I click on one of the Checkboxes, in which I get an error saying "Input string was not in a correct format." The only input I have is tip.Text, which receives a string. If anyone has any ideas, or has a better way of instantiating a RadToolTip for a CheckboxList, I'll be thankful. Thanks.
~Chad Johnson