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

Not expanding on first click

5 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fred
Top achievements
Rank 1
Fred asked on 18 Jun 2012, 06:49 PM
I have a grid with a detail table. The first time I click on the expand column The screen refreshes but the row does not expand. If I click on it again then I get my expand with the detail table. Click again it colapses. Click again it expands. This is code I have inherited so I am not really familiar how the expand/colapse works and do not see it in the code behind.
I followed the first time click into the pageload then back into the apx.
the second click went through the pageload, then on to OnItemCommand and  OnNeedDataSource and on to OnDetailDataBind
So why doesn't it do this the first time?
Has anyone ever encountered something similar and cand give me a coupld things to look for?

Thanks

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Jun 2012, 11:09 AM
Hi Fred,

I tried ro replicate the described problem in this online demo, but to no avail. I suggest you review the code and see what is the difference in your case.

Also, you could provide a live url that reproduces the problem, so we can investigate it further.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Fred
Top achievements
Rank 1
answered on 25 Jun 2012, 06:16 PM
you can go to tr1.treenosoftware.com
username telerik
password telerik
choose the Document Center tab
click on the > lower left as seen in the attached screenshot. 1st click does a refresh but does not expand the table. 2nd click now behaves like normal.
0
Pavlina
Telerik team
answered on 28 Jun 2012, 03:38 PM
Hi Fred,

Thank you for the provided url. Unfortunately, I can not say what is causing expanding, sorting and filtering to not work first time. I have not encounter such problem before. However, I suppose that if you have attached ItemCommand event the problem could come from there. You can double check the code and see if there is something wong there.

Additionally, if this is not the problem, you can open a formal support ticket and send us a stripped working version of your project. Thus we will be able to debug it locally and provide a proper solution for your case.

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Fred
Top achievements
Rank 1
answered on 28 Jun 2012, 04:06 PM
It doesn't get to the itemcommand on the first click. I thought this was interesting. Prior to the first click the html for the expand button looks like this
<input name="RadGridFileView$ctl00$Row1085$GECBtnExpandColumn" title="Expand" class="rgExpand" id="RadGridFileView_ctl00_Row1085_GECBtnExpandColumn" type="submit" value=" "/>
after the first click
<input name="RadGridFileView$ctl00$ctl04$GECBtnExpandColumn" title="Expand" class="rgExpand" id="RadGridFileView_ctl00_ctl04_GECBtnExpandColumn" type="submit" value=" "/>

you can see the slight difference. then after it looks like this which seems normal.
<input name="RadGridFileView$ctl00$ctl04$GECBtnExpandColumn" title="Collapse" class="rgCollapse" id="RadGridFileView_ctl00_ctl04_GECBtnExpandColumn" type="submit" value=" "/>
<input name="RadGridFileView$ctl00$ctl04$GECBtnExpandColumn" title="Expand" class="rgExpand" id="RadGridFileView_ctl00_ctl04_GECBtnExpandColumn" type="submit" value=" "/>
0
Pavlina
Telerik team
answered on 29 Jun 2012, 01:44 PM
Hi Fred,

To be able to assist you further we will need a sample project which we can debug locally. You should open a formal support ticket and attach the project there. Thus we will be able to find what is causing the described problem and do our best to help you.

Thank you for your cooperation.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Fred
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Fred
Top achievements
Rank 1
Share this question
or