Note that there are some explanatory texts on larger screens.

plurals
  1. POObout Grid add objects only on the client-side
    primarykey
    data
    text
    <p>I am using a big form, and in this form I have about 3 grids and many texboxes, I would like to create new elements in these grids without needing to refreshing all the page, so I can post all the form at once.</p> <p>I am trying to make the operations of <strong>Update</strong>, <strong>Delete</strong> and <strong>Add</strong> only on the client-side, without any post.</p> <p><strong>EDITED</strong></p> <p>I successfully achieved these operations using AJAX calls and using a <strong>ViewState</strong> as a <strong>DataTable</strong>. This because of the attribute <strong>CallBackMode</strong>, but in my opinion is doing an unecessary POST, even if it is an AJAX call, since it all could be handled only on the client-side, by javaScript.</p> <p>My grid is like bellow.</p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:Panel ID="Panel2" runat="server"&gt; &lt;obout:Grid ID="Grid1" AllowPageSizeSelection="false" AllowSorting="false" AllowMultiRecordSelection="false" AllowAddingRecords="true" FolderLocalization="~/Localization/Grid" FolderStyle="~/Styles/grid/premiere_blue" AutoGenerateColumns="false" DataKeyNames="id" AllowPaging="false" runat="server" Serialize="true" CallbackMode="true" ClientIDMode="Static"&gt; &lt;Columns&gt; &lt;obout:Column ID="Column1" Visible="false" HeaderText="Edit" Width="100" /&gt; &lt;obout:Column ID="Column2" DataField="pro_ncm" HeaderText="NCM" runat="server" Width="20%" /&gt; &lt;obout:Column ID="Column3" DataField="pro_descricao" HeaderText="Principais Produtos Fabricados" Width="20%" Wrap="true" runat="server" /&gt; &lt;obout:Column ID="Column4" DataField="pro_capacidade" HeaderText="Capacidade Produtiva/Ano" Width="20%" Wrap="true" runat="server" /&gt; &lt;/Columns&gt; &lt;/obout:Grid&gt; &lt;/asp:Panel&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload