EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 01:39:13 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
edit row at edatagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: edit row at edatagrid (Read 10172 times)
jaimi
Full Member
Posts: 119
edit row at edatagrid
«
on:
September 09, 2012, 02:19:17 AM »
I created a toolbar with several buttons like this:
<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true"
onclick="javascript:$(\'#dag_project\').edatagrid(\'addRow\')">zufügen</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true"
onclick="javascript:$(\'#dag_project\').edatagrid(\'editRow\')">ändern</a>
The Update (edit) button does not work. I can only edit a row by double clicking on the row within the edatagrid.
What/where I have to modify?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: edit row at edatagrid
«
Reply #1 on:
September 09, 2012, 03:18:25 AM »
When calling the 'editRow' to edit a row, the 'index' parameter must be passed to indicate what row will be edited. For example, running the code below will begin editing the third row(the row index start with 0).
$('#dag_project').edatagrid('editRow', 2);
Logged
jaimi
Full Member
Posts: 119
Re: edit row at edatagrid
«
Reply #2 on:
September 10, 2012, 03:07:10 AM »
Thanks, I found where to set it.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...