DevExtreme integration DXGrid Master-Detail solution

0
0

Hi again!

  1. How we can set ID of the grids so that JS code in eval sessions to get instance of the concrete grid by it’s id. Please for sample code.
  2. Master-detail scenario: I see this by only one way possible: we create two independent grids in order Wisej integration to catch each grid events and both grids to be editable. One grid as master, second grid as detail. Pease for sample JS code or sample project how to bind detail grid to the master grid.

We really need that.

Thank you!

 

  • You must to post comments
0
0
  1. I don’t understand what you mean. The dxgrid doesn’t have an id. It’s a jquery instance created inside a container div. To get the jquery instance use: a) this.widget1.dxDataGrid.widget; b) $(“#id”).data(“dxDataGrid”) where id is “id_” + this.widget1.Handle + “_container”. It’s not a Wisej implementation, it’s standard jquery and dx.
  2.  You cannot use a Wisej wrapped dxgrid in the details because the details is a HTML template replicated by javascript on the client side. You can feed it data from the server using a service or postback url exactly as you would do for the main grid. It’s all standard javascript code.

 

  • You must to post comments
0
0

 

2. I though I can cite detail DXGrid in JS script as it was in export to PDF scenario true it’s instance. Or I am wrong for that?
Do I correctly understand that we have to create detail DXGrid entirely in  JS in the  template property  of the master DXGrid. If so, how we will able to interact with detail grid events in order to manage all editing scenario topics: default values of new row, read edited row values, cancel editing of the row, edit values of the row fields in runtime mode and so on.

Thank you!

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.