Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Event onblur in inputs on form editing
05/06/2014
17:39
Avatar
Jone
Brazil
New Member
Members
Forum Posts: 2
Member Since:
05/06/2014
sp_UserOfflineSmall Offline

You can run the code behind methods at the outlet of inputs in modal form (add / edit mode)?
I need that when you leave a field seek information on a method other inputs and fill the form.
thank you

06/06/2014
13:08
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Look for dataEvents and dataInit in the docs.

Kind Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

07/06/2014
01:45
Avatar
Jone
Brazil
New Member
Members
Forum Posts: 2
Member Since:
05/06/2014
sp_UserOfflineSmall Offline

Hello,

   thank you from response.

   I use AspNet werbforms. My code:

<cc1:JQGrid ID="Grid" runat="server" Height="340" EnableViewState="False" RenderingMode="Optimized" OnRowAdding="Grid_RowAdding" >
<ToolBarSettings
ShowAddButton="True"
ShowEditButton="True"
ShowDeleteButton="True"
ShowSearchButton="True"
ShowRefreshButton="True"
/>
<Columns>
<cc1:JQGridColumn DataField="Id" PrimaryKey="True" Editable="False" FixedWidth="True" Width="36" DataType="System.Int32" />
<cc1:JQGridColumn DataField="RazaoSocial" HeaderText="Raz&atilde;o Social" Editable="True" Searchable="True" DataType="System.String" >
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="60" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Fantasia" Editable="True" Searchable="True" Width="100" DataType="System.String" >
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="TipoPessoa" Editable="True" Visible="False" EditType="DropDown" EditValues="J:Juridico;F:Fisico"></cc1:JQGridColumn>
<cc1:JQGridColumn DataField="CnpjCpf" HeaderText="CNPJ / CPF" Editable="True" Searchable="True" FixedWidth="True" Width="118" DataType="System.String" />
<cc1:JQGridColumn DataField="Cep" HeaderText="CEP" Editable="True" Searchable="True" FixedWidth="True" Width="60" DataType="System.String" >
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="10" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Endereco" HeaderText="Endere&ccedil;o" Editable="True" Searchable="True" Visible="False">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="60" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Nr" Editable="True" Searchable="True" FixedWidth="True" Width="40" Visible="False">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="10" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Complemento" Editable="True" Visible="False">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Bairro" Editable="True" Searchable="True" FixedWidth="True" Width="80" Visible="True">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Cidade" HeaderText="Munic&iacute;pio" Editable="True" Searchable="True">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="UF" Editable="True" Searchable="True" FixedWidth="True" Width="10"></cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Email" HeaderText="e-mail" Editable="True" Searchable="True" FixedWidth="True" Width="130">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Site" Editable="True" Searchable="True" FixedWidth="True" Width="116">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Contato" Editable="True" Searchable="True" FixedWidth="True" Width="80">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Fone" Editable="True" Searchable="True" FixedWidth="True" Width="110">
<EditFieldAttributes>
<cc1:JQGridEditFieldAttribute Name="Size" Value="40" />
</EditFieldAttributes>
</cc1:JQGridColumn>
<cc1:JQGridColumn DataField="Tipo" Editable="False" Visible="False"></cc1:JQGridColumn>
</Columns>
<AddDialogSettings
CancelText="Cancelar"
Caption="Alteração de dados"
CloseAfterAdding="true"
Draggable="true"
Width="460"
LoadingMessageText="Carregando dados"
Modal="true"
ReloadAfterSubmit="true"
Resizable="False"
SubmitText="Salvar"
/>
<EditDialogSettings
CancelText="Cancelar"
Caption="Alteração de dados"
CloseAfterEditing="true"
Draggable="true"
Width="460"
LoadingMessageText="Carregando dados"
Modal="true"
ReloadAfterSubmit="true"
Resizable="False"
SubmitText="Salvar"
/>
<AddDialogSettings CancelText="Cancelar" Caption="Novo registro" Modal="True" SubmitText="Salvar" />
<DeleteDialogSettings CancelText="Cancelar" Caption="Apagar registro" DeleteMessage="Excluir registro?" LoadingMessageText="Carregando dados" Modal="True" SubmitText="Excluir" />
<PagerSettings NoRowsMessage="Não existem dados cadastrados" PageSize="30" PageSizeOptions="[10,20,30,40,50]" />
<ToolBarSettings ShowViewRowDetailsButton="True"></ToolBarSettings>
<AppearanceSettings AlternateRowBackground="True" />
</cc1:JQGrid>

I have not found the dataEvents. 

I found no example in AspNet webforms too.
The CEP (postalcode) field in the output event I need to call a method in C # that will fill the remaining fields.
Where can I find an example of this scenario?
thank you

09/06/2014
14:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

It seems you use our commercial components. Please post your question here: trirand.net

Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information