spell checking a text box in a repeater

2 posts, 0 answers
  1. Dan
    Dan avatar
    6 posts
    Member since:
    Jan 2011

    Posted 03 Jan 2011 Link to this post

    Hi all,

    How can I spell check the ASP:textbox TextBoxcomments in this repeater? If I specify isClientID="true" it runs but says it can't find a valid HTML item. If I remove the isClientId I get a message saying it can't be Null. Thanks in advance, Dan

    <asp:Repeater ID="repeaterApproveDept" Runat="server">
                                <TD class="APR_ARIAL_10PT" width="100">
                                    <%# FormatName((System.Data.DataRowView)Container.DataItem)%>
                                <td valign="middle">
                                <cc1:myCCFDropDownList Enabled = "false" id="Myccfdropdownlist2" runat="server" Width="100" SetValue='<%# DataBinder.Eval(Container.DataItem, "RecommendedRating")%>' AutoPostBack="False" apAssessmentID='<%# DataBinder.Eval(Container.DataItem, "apAssessmentID")%>' siStaffID='<%# DataBinder.Eval(Container.DataItem, "siStaffID")%>' DeptAssignID='<%# DataBinder.Eval(Container.DataItem, "DeptAssignID")%>' IsLeadership='<%# DataBinder.Eval(Container.DataItem, "IsLeadership")%>' BogReviewerStatus='<%# DataBinder.Eval(Container.DataItem, "BogReviewerStatus")%>' DivStatus='<%# DataBinder.Eval(Container.DataItem, "DivStatus")%>'>
                                        <asp:ListItem Value="">Not Selected</asp:ListItem>
                                        <asp:ListItem Value="E">Exceeds</asp:ListItem>
                                        <asp:ListItem Value="A">Achieves</asp:ListItem>
                                        <asp:ListItem Value="I">Needs Improvement</asp:ListItem>
                                        <asp:ListItem Value="NR">NR</asp:ListItem>
                                        <asp:ListItem Value="RET">RET</asp:ListItem>
                                        <asp:ListItem Value="TNTR">TNTR</asp:ListItem>
                                        <asp:ListItem Value="WR">WR</asp:ListItem>
                                <TD width="85%" valign="middle">
                                    <asp:textbox cssclass="APR_ARIAL_10PT" id="TextBoxComments" TextMode="MultiLine" runat="server" Rows= 5 Columns = 140 Text='<%# DataBinder.Eval(Container.DataItem, "Comments")%>'>
                                <td align="center">
                                    <asp:CheckBox ID="CheckBoxCompleted" Runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "IsCompleted").ToString()=="1"%>' onclick="return false;">
                                <td colspan="4"><hr>
  2. Dan
    Dan avatar
    6 posts
    Member since:
    Jan 2011

    Posted 04 Jan 2011 Link to this post

    I figured out this one.... hope this helps someone.

    //Load controlstocheck prop for spell checker.
              int i = 0;
              int x = this.repeaterApproveDept.Items.Count;
              RadSpell1.ControlsToCheck = new string[x];
              foreach (RepeaterItem SC in this.repeaterApproveDept.Items)
                      TextBox SpellChecktextBoxComments = (TextBox)SC.FindControl("TextBoxComments");
                      RadSpell1.ControlsToCheck.SetValue(SpellChecktextBoxComments.ClientID, i);
              RadSpell1.IsClientID = true;
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top