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

RadDock and HtmlTable

1 Answer 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mathew
Top achievements
Rank 1
Mathew asked on 12 Nov 2013, 01:13 AM
Hello.  Can someone explain to me why the below line of code works fine in version 2011.2.712.35 of Telerik DLL, but doesn't work in version 2013.3.1015.35?  The error that I'm getting with version 2013.3 is "Specified argument was out of the range of valid values". 
Is version 2013.3 not completely backward compatible with version 2011.2 when it comes to RadDock??
HtmlTable obj = (HtmlTable)((System.Web.UI.Control)(this.plcHolderFltControl)).FindControl("fltUserControl").FindControl("plcHolderFilterControl").FindControl("DockLayout1").FindControl("DockZone1").FindControl("RadDock1").Controls[0].Controls[1].Controls[1].Controls[0].Controls[0];

1 Answer, 1 is accepted

Sort by
0
Mathew
Top achievements
Rank 1
answered on 12 Nov 2013, 07:50 PM
I figured this out.  It seems that the HtmlTable of the RadDock has moved.  This code now works.

 

 

HtmlTable obj = (HtmlTable)ctrl.FindControl("plcHolderFltControl").FindControl("fltUserControl").FindControl("plcHolderFilterControl").FindControl("DockLayout1").FindControl("DockZone1").FindControl("RadDock1").Controls[1].Controls[0];

Probably the right way to resolve this would be to loop through all controls/subcontrols of a RadDock object and just look for the HtmlTable but, for now I just wanted to get the current Telerik DLL to work with my existing code without making too many changes.

 

Tags
Dock
Asked by
Mathew
Top achievements
Rank 1
Answers by
Mathew
Top achievements
Rank 1
Share this question
or