Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
javascript subgridcol expand
24/04/2009
05:19
Avatar
josepk
Member
Members
Forum Posts: 44
Member Since:
16/06/2008
sp_UserOfflineSmall Offline

Hi,

I need to expand the subgrid of one row by a javascript function, but I don't know if it is possible. I have looked forwad for some function but I haven't found anything.

I have an image in the subgrid that has a function on click that calls to server and delete an element, so I need to reload the grid, but I need too open that subgrid.

is it possible?

thanks in advance.

Josep Escofet

24/04/2009
08:35
Avatar
jlb30504
Member
Members
Forum Posts: 41
Member Since:
25/02/2009
sp_UserOfflineSmall Offline

expandSubGridRow() on page 95 of the documentation should do the trick.

27/04/2009
02:14
Avatar
josepk
Member
Members
Forum Posts: 44
Member Since:
16/06/2008
sp_UserOfflineSmall Offline

Yes, I've tried this, but it dosen't work, there is no error, I'm using version 3.1.

I've tried this:

gridComplete: function() {
                                    alert("cmplete");
                                    $("#grid2").expandSubGridRow("1");
                                    alert("toggle");
                                    $("#grid2").toggleSubGridRow("1");
                                },     

the alert works, but has not effect.

thanks.

27/04/2009
04:27
Avatar
josepk
Member
Members
Forum Posts: 44
Member Since:
16/06/2008
sp_UserOfflineSmall Offline

After 1st load executing gridComplete() ,  Firexox says :

$("#grid2").expandSubGridRow is not a function
[Image Can Not Be Found] $("#grid2").expandSubGridRow(1);
The other times there is no error. I don't understand, so when I click the plus sign the
subgrid is load from the server and works perfectly, but when I am trying to expand
the grid just when load then dont work 🙁
any ideas?
thanks.

27/04/2009
04:48
Avatar
josepk
Member
Members
Forum Posts: 44
Member Since:
16/06/2008
sp_UserOfflineSmall Offline

I have solved the error including grid.subgrid.js.

But now, there isn't error but the row is not expanded thru javascript 🙁

$(”#grid2″).expandSubGridRow(”1″);

any ideas?

thanks.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
114 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information