RadDock and HtmlTable

2 posts, 0 answers
  1. Mathew
    Mathew avatar
    20 posts
    Member since:
    Nov 2010

    Posted 11 Nov 2013 Link to this post

    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];

  2. Mathew
    Mathew avatar
    20 posts
    Member since:
    Nov 2010

    Posted 12 Nov 2013 Link to this post

    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.

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top