EasyUI Forum
September 16, 2025, 03:18:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to use 'selectRecord' in datagrid ? :(  (Read 19721 times)
varonica
Full Member
***
Posts: 106


View Profile
« on: March 13, 2013, 09:27:19 PM »

I'm struggling to find away of using selectRecord but it didn't work!! please help me!! Cry Cry Cry
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #1 on: March 13, 2013, 10:06:02 PM »

Hi;

How about this:

Code:
var row = $('#mydg').datagrid('getSelected');
console.log(row);
Logged

-- Licensed User --
varonica
Full Member
***
Posts: 106


View Profile
« Reply #2 on: March 14, 2013, 12:19:49 AM »

Thanks for reply, but i want to use 'selectRecord'(method of datagrid) !!! Please help me Cry
Logged
mazvv
Newbie
*
Posts: 20


View Profile WWW
« Reply #3 on: March 14, 2013, 01:28:48 AM »

Did you tried do simply as in documentation
Code:
$('#mydatagrid').datagrid('selectRecord', idValue);
Please, see http://jsfiddle.net/qhdcY/1/
« Last Edit: March 14, 2013, 01:49:04 AM by mazvv » Logged

TravelCRM - opensource CRM for travel companies
varonica
Full Member
***
Posts: 106


View Profile
« Reply #4 on: March 14, 2013, 01:47:54 AM »

Hi mazvv, I did try but it isn't working as i expected!!
Here is my code:
     idValue = 5;
     $('#dg').datagrid('selectRecord',idValue);
Logged
mazvv
Newbie
*
Posts: 20


View Profile WWW
« Reply #5 on: March 14, 2013, 01:49:41 AM »

Please, see http://jsfiddle.net/qhdcY/1/
I think your problem is idField
Logged

TravelCRM - opensource CRM for travel companies
varonica
Full Member
***
Posts: 106


View Profile
« Reply #6 on: March 14, 2013, 02:34:11 AM »

Thanks for saving me, you're a genius!!!  Kiss Kiss Kiss Kiss Wink Wink Cheesy Cheesy Cheesy Cheesy Cry
Logged
iceh
Jr. Member
**
Posts: 61


View Profile
« Reply #7 on: January 09, 2014, 05:09:31 AM »

Thx, that helped me, too!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!