I have created a grid and everything is running fine...I am wanting to do a CompareValidator on the EditItemTemple to compare the SUM of DRQTY,QTY Against the Entered Value of tbCDRQTY.

Is there a way to add this comparevalidator ??? What am I missing

        <div class="row">
        <telerik:RadGrid ID="rgRequests" runat="server" onkeydown="handleEnterKey(this, event);" CssClass="table table-bordered cat" Skin="Metro" OnItemCreated="rgRequests_ItemCreated" OnItemCommand="rgRequests_ItemCommand" OnUpdateCommand="rgRequests_UpdateCommand" OnNeedDataSource="rgRequests_NeedDataSource" AllowMultiRowEdit="true" MasterTableView-EditMode="Batch" MasterTableView-ClientDataKeyNames="DPO,DITEM,DLINE,DQTY,DRQTY" AutoGenerateColumns="false">
            <MasterTableView CommandItemDisplay="TopAndBottom" CommandItemSettings-ShowAddNewRecordButton="false" CommandItemSettings-ShowRefreshButton="true" CommandItemSettings-ShowSaveChangesButton="true" CommandItemSettings-ShowCancelChangesButton="true">
                <Columns>
                    <telerik:GridBoundColumn HeaderText="PO#" DataField="DPO" ReadOnly="true" />
                    <telerik:GridBoundColumn HeaderText="LINE" DataField="DLINE" ReadOnly="true" />
                    <telerik:GridBoundColumn HeaderText="Item" DataField="DITEM" ReadOnly="true" />
                    <telerik:GridBoundColumn HeaderText="Ordered" DataField="DQTY" ReadOnly="true" />
                    <telerik:GridBoundColumn HeaderText="Received" DataField="DRQTY" ReadOnly="true" />
                    <telerik:GridTemplateColumn HeaderText="Received Today" DataField="CDRQTY">
                        <EditItemTemplate>
                            <asp:TextBox ID="tbCDRQTY" CssClass="pull-left input-mini" runat="server" MaxLength="3" />
                            <asp:RegularExpressionValidator CssClass="pull-left small" runat="server" ControlToValidate="tbCDRQTY" ValidationExpression="^[0-9]+$" ErrorMessage="Numbers Only" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:TextBox CssClass="invisible" ID="DRDATE" runat="server" ReadOnly="true" />
        <asp:TextBox CssClass="invisible" ID="DBSID" runat="server" ReadOnly="true" />
    </div>

Related posts

Recent Viewed