Forum
13:08
Moderators
30/10/2007
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.
01:45
05/06/2014
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ã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ç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í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
14:33
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66