This is a migrated thread and some comments may be shown as answers.

[Solved] Row selection when expanding details

3 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jimmie
Top achievements
Rank 1
Jimmie asked on 28 Apr 2009, 09:54 PM
Hello

I appreciate any help with this strange problem. I have a Radgrid with a single detail table using declarative databinding on a SqlDataSource. The problem is that when I click on the Expansion/Collapse icon (+/-) without first selecting the row no records are returned when the record expands. Ok, so I have to click on the row to highlight it, then click on the Expansion/Collapse icon (+/-) and voila, data appears in the detail table.
Is this by design or am I screwing something up.

Thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Apr 2009, 04:39 AM
Hi Jimmie,

Binding the Grid declaratively must work. I am not sure what is happening on your end. Here is an online demo which demonstrates how to create a simple hierarchical Grid declaratively. Go through it and see if you have missed out anything.
Declarative Relations

Shinu
0
Jimmie
Top achievements
Rank 1
answered on 29 Apr 2009, 01:08 PM
Shinu

I am sorry for not being clear. The mastertable works great but I have first click on the row before I expand the detailtable or no records will be returned. If click on the row first selecting it, then expand the row, the detailtable works. Why does'nt the row select when I expand it.

Jimmie
0
Jimmie
Top achievements
Rank 1
answered on 29 Apr 2009, 01:49 PM
This is resolved, I found that this works well

 

If e.CommandName = "ExpandCollapse" Then

 

e.Item.Selected =

True

 

 

End If

 

Tags
Grid
Asked by
Jimmie
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jimmie
Top achievements
Rank 1
Share this question
or