如何在选择jqgrid时更新jquery数据表列值

时间:2015-12-23 14:35:50

标签: jquery asp.net-mvc jqgrid datatables

我有一个要实现的任务,我需要实现jqgrid,并且在选择jqgrid的每一行时,应该使用网格值更新jquery数据表列值。如有任何可能的解决方案,请提供帮助。

1 个答案:

答案 0 :(得分:0)

您可以在onSelectRow事件中使用row.add DataTable函数来获取行数据。然后使用onSelectRow: function(rowId){ var rowData = $("#list").getRowData(rowId); dataTable.row.add([ rowData['id'], rowData['name'] ] ).draw( false ); } 函数将jqgrid选定的行添加到 Private Sub PictureBox1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint Dim pen As New Pen(Color.Red, 1) Dim r As Integer = 100 'Delay(2) Do Until r > 300 e.Graphics.DrawArc(pen, 50, 50, 50, 50, 270, r) ' pen style, x position, y postion, width, height, start point degrees, arc degrees ListBox1.Items.Add(r) ListBox1.SelectedIndex = ListBox1.Items.Count - 1 r = r + 100 Delay(1) Loop e.Dispose() pen.Dispose() ListBox1.Items.Add("Done") End Sub ,如下所示。

$this->redirect($redirect, 302);

FIDDLE HERE