Forum
09:21
26/07/2013
Hi,
I searched and tried everything to get it solved but I cannot find a way to do, that's why I would really ask for your help:
I have a grid that contains a subgrid. The subgrid opens on every row in the grid (+ sign):
+ Test
- SubEntry1
- SubEntry2
+ Test2
- SubEntryB1
- SubEntryB2
Now when I click on Add in one of the subgrids I want to pass the parent id to the controller action. Now you will say, use the event 'subGridRowExpanded', but here's the problem:
Imagine I expand both lines, 'Test' and 'Test2' and click afterwards on 'Add' in Subgrid within 'Test2'. Now you don't know which subgrid was expanded last. You can expand Test, then Test2, and open 'Add' in Test but the id of Test2 would have been saved last in subGridRowExpanded.
Is there another way? So that I can maybe find out the rowid of the +-sign? I can't imagine a solution right but maybe add a comboBox in the add-dialogue to choose one of the ids, but I assumed that this is not necessary, because I clicked one of the subgrids within the specified row.
Any help would be kindly appreciated.
thanks,
dikrid
10:46
26/07/2013
Hi,
I could solve it.
I expanded the colModel with a parentid row and used subGridRowExpanded to add the value from the parent row to the parentid row in the subgrid.
So I tried and finally came up with the edittype: select and I built the variable previously in the format value:value
Phew, I am glad I got it working.
Thanks anyway. Have a nice weekend.
dikrid
Most Users Ever Online: 715
Currently Online:
28 Guest(s)
Currently Browsing this Page:
1 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66