EasyUI Forum
October 16, 2025, 08:17:52 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / General Discussion / Editable datagrid new row on textbox enter keypress event on: September 26, 2012, 02:47:52 AM
Hi,

How can I add an event on the textbox locate on the last column of a editable datagrid such that if I press enter a new editable row is created?
2  General Category / General Discussion / Re: Save datagrid rows to database on: September 26, 2012, 02:38:20 AM
thank you,it worked!
3  General Category / General Discussion / Save datagrid rows to database on: September 20, 2012, 08:26:41 AM
Hi,

How can I save the entire datagrid rows to the database?

NB:
I want datagrid not editable datagrid.
4  General Category / EasyUI for jQuery / calling php OOP method that retuns a JSON on: September 14, 2012, 01:23:48 AM
I am try to use the example given in "Build CRUD Application with jQuery EasyUI", but this time round I have a PHP OOP function called get_data inside get_users.php i.e:

Class Users{
public function get_data() {

$rs = mysql_query("select * from users");

$items = array();
while($row = mysql_fetch_object($rs)){
    array_push($items, $row);
}
$result["rows"] = $items;

echo json_encode($result);
}
}

How do I specify the function the url section of the table tag in index.html i.e

<table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px"
         url="get_users.php?get_data"
         
         toolbar="#toolbar" pagination="true"
         rownumbers="true" fitColumns="true" singleSelect="true">

Since if I put the way I have done above it's not working?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!