EasyUI Forum
September 14, 2025, 02:20:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid reuseable/repeatable  (Read 7275 times)
kluther
Newbie
*
Posts: 3


View Profile Email
« on: June 12, 2013, 01:38:00 AM »

I would like to use the datagrid as a function so that I can call it multiple times. The scenario I have in mind is the following:

1. The user opens the page and a datagrid is displayed.
2. When the user wants to add or edit a row the add- or edit-dailog is opened.
3. Some fields may come from another table so they are shown in a combogrid
4. If the user uses the combogrid that grid should also have all the crud options.
5. The user can scroll the combogrid and select an entry or he can edit an entry or he can add an entry.
6. If the user selects an entry than the necessary field should be updated in the edit-dialog.
7. If the user choose to add or edit an entry from the combogrid everything is repeated from step 2.
The application I am building is a rest-application using remote json-data. So for every call to the grid the url is different and should be passed as a parameter to the jqgrid-function. Questions:

1.Can anyone help me in the right direction for steps 4 to 7?
2.How can I add CRUD to the combogrid?
3.How do I achieve that if something is selected from the combogrid the edit/add dialog is updated?
4.Should the data for the other grids allready be loaded on opening the page or can I get them when opening the dialog?
5.How can I set this up dynamically?
Thank you
Kluther
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!