Uchenna Nwanyanwu
Uchenna Nwanyanwu

Reputation: 3204

How do i pass the id of the currently edited row to 'dataUrl' property during cell edit

I have a grid which is enabled for cell editing. I want to add the value of the id of the currently edited row to the url that is passed to the dataUrl property of the editoptions attribute. How can i achieve this?

 {

  name:'selectBox2',
  index:'selectBox2',
  editable: true,
  edittype: 'select',
  editoptions:
  { 
      dataUrl : 'classes/form_db.php?id=????????',
      multiple:true, 
      size:5
  }

} 

Upvotes: 0

Views: 126

Answers (1)

Oleg
Oleg

Reputation: 221997

There are many ways to implement the requirement. The choice depend mostly from the editing mode which you use and which you not specified in your question. First of all I would recommend you to try the way described in the answer. One more way I described here.

Upvotes: 1

Related Questions