P
P
pavelpasha2016-07-02 16:01:20
ASP.NET
pavelpasha, 2016-07-02 16:01:20

How to get data from .dxTextBox and send to server?

Layout.cshtml

$("#id0").dxTextBox({
                
                placeholder: "Введите номер поручения",
                showClearButton: true
            }).dxValidator({

There are 12 such text boxes in the form.
index.cshtml
<div class="form">
        <div class="dx-fieldset">
            <div class="dx-field-2">
                <div class="dx-field-value">
                    <div class="dx-field-value-1">
                        <div id="id0"></div>
                    </div>
.......

When the button is clicked, the function is called
function validateAndSubmit(params) {
                var result = params.validationGroup.validate();
                if (result.isValid) {
                    DevExpress.ui.notify({
                        message: "Отправка",
                        position: {
                            my: "center top",
                            at: "center top"
                        }
                    }, "success", 3000);
                    form.submit();
                    
                }
            }

It is necessary to collect data from all textboxes, save and send.?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question