Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use Validations on RadPageView as below and its not working (Paging not working):

XML
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
        <Tabs>
            <telerik:RadTab Text="Client Information" Width="200px">
            </telerik:RadTab>
            <telerik:RadTab Text="Your Contact Numbers" Width="200px">
            </telerik:RadTab>
            <telerik:RadTab Text="Use Advansys Numbers" Width="200px">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>


XML
<telerik:RadPageView runat="server" ID="RadPageView2">
            <div class="ClientClass">
                <table>
                    <tr>
                        <td>
                            <telerik:RadButton ID="OldMessagesRadButton" runat="server" ButtonType="ToggleButton"
                                ToggleType="Radio" AutoPostBack="false" BorderWidth="0" BackColor="transparent"
                                GroupName="Radio" Text="Old Messages">
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="classImg">
                                <telerik:RadXmlHttpPanel runat="server" Height="240px" ID="InfoCustomerRadXmlHttpPanel"
                                    Value="3" CssClass="xmlPanelCustomerInfo" Visible="true">
                                    <div class="classDiv">
                                        <table>
                                            <tr style="height: 30px">
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label1" runat="server" Text="Messages :" Font-Bold="true" Font-Size="Medium"></asp:Label>
                                                </td>
                                                <td colspan="2">
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="MessagesRadComboBox" runat="server" DataSourceID="">
                                                        <%--load client's sms --%>
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </telerik:RadXmlHttpPanel>
                            </div>
                        </td>
                    </tr>
                    <tr style="height: 20px;">
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadButton ID="NewMessageRadButton" runat="server" ButtonType="ToggleButton"
                                ToggleType="Radio" AutoPostBack="false" BorderWidth="0" BackColor="transparent"
                                GroupName="Radio" Text="Write New Message">
                                <%--<ToggleStates>
                              <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleRadioChecked"></telerik:RadButtonToggleState>
                              <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleRadio"></telerik:RadButtonToggleState>
                         </ToggleStates>--%>
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="classImg">
                                <telerik:RadXmlHttpPanel runat="server" Height="240px" ID="radxmlhttppanel1" Value="3"
                                    CssClass="xmlpanelcustomerinfo">
                                    <div class="classDiv">
                                        <table cellpadding="5px" cellspacing="5px" frame="border" rules="groups" style="position: absolute">
                                            <tr>
                                                <td style="width: 120px;">
                                                    Phone:
                                                </td>
                                                <td style="width: 150px;">
                                                    <asp:TextBox ID="PhoneTextBox" runat="server" Width="116px" MaxLength="12"></asp:TextBox>
                                                </td>
                                                <td style="width: 200px;">
                                                   <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="PhoneTextBox"
                                                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Required</asp:RequiredFieldValidator>--%>
                                                    <asp:CustomValidator ID="CustomValidator2" runat="server" Display="Dynamic" ControlToValidate="PhoneTextBox"
                                                        ClientValidationFunction="Validate_Sender" ForeColor="Red">Invalid Phone</asp:CustomValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 200px;">
                                                    Message Sender:
                                                </td>
                                                <td style="width: 150px;">
                                                    <asp:TextBox ID="sendertxt" runat="server" Width="116px" MaxLength="11"></asp:TextBox>
                                                </td>
                                             <%--   <td style="width: 200px;">
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="sendertxt"
                                                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Required</asp:RequiredFieldValidator>
                                                    </td>--%>
                                                    <td style="width:200px;">
                                                    <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" ControlToValidate="sendertxt"
                                                        ClientValidationFunction="Validate_Sender" ForeColor="Red">Invalid message sender</asp:CustomValidator>
                                                </td>
                                            </tr>
                                        <%--    OnServerValidate="Sender_Validate"--%>
                                            <tr>
                                                <td style="width: 200px;">
                                                    Msessage Text:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="msgtxt" runat="server" TextMode="MultiLine" Height="88px" Width="280px"
                                                        onkeyup="Update_Length_Label('bodyContent_msgtxt', 'bodyContent_length_lbl')"></asp:TextBox>
                                                </td>
                                               <%-- <td>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="msgtxt"
                                                        ErrorMessage="RequiredFieldValidator" Text="Required" ForeColor="Red">Reuired</asp:RequiredFieldValidator>
                                                </td>--%>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Message Length:
                                                </td>
                                                <td colspan="2">
                                                    <asp:Label ID="length_lbl" runat="server" Width="280px" ViewStateMode="Enabled"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr style="height: 10px;">
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Button ID="Savebtn" runat="server" Text="Send" Font-Bold="False" Font-Size="Large"
                                                        ForeColor="#333333" Height="27px" Width="85px" OnClick="Sendbtn_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </telerik:RadXmlHttpPanel>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadPageView>



when remove Validations Paging working fine , any suggestions !!
Posted
Updated 31-Aug-14 23:59pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900