-1

I am using jquery easy ui plugin.I want to insert text box in a datagrid view. Want to insert text box.

NKM
  • 304
  • 2
  • 7
  • 13

2 Answers2

1

It's maybe not the best way, but you can change Dom with some jQuery like :

$('td[field="columnname"').each(function() {
    $(this).html('<input type="text" value="'+$(this).find('div').text()+'"');
});

I haven't test it ;)

JoDev
  • 6,633
  • 1
  • 22
  • 37
  • And what about the "Row Editing DataGrid" option? In the left menu of your link, you'll find it. http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem= – JoDev Mar 07 '13 at 10:21
  • @JoDevI have to insert text box in a datagrid,I don't have to use inline editing for datagrid. – NKM Mar 07 '13 at 10:30
0

You can use formatter for that column,

<th field="textcolumnid" width="80" formatter="gettextbox" >

function gettextbox(value,row,index)
{
  return "<input type='text'  value='"+value+"' onChange=textboxChecked("+index+",this);>";
}
Saigitha Vijay
  • 466
  • 3
  • 8