C1ButtonExtender throws exception when target button is on C1Tabs page

Posted by: ke4vtw on 10 September 2017, 11:43 am EST

  • Posted 10 September 2017, 11:43 am EST

    I'm attempting to add C1FormDecorators to a page uses the C1Tabs control. The first tab contains options to customize a report, including buttons, dropdownlists, a C1TreeView, textboxes, etc. The second tab contains a C1Grid that displays the results of the query.

    I've discovered that this line:

    <wijmo:C1ButtonExtender ID="extbtnMissing" runat="server" TargetControlID="btnMissing" /> 


    works fine, so long as btnMissing is not on a C1Tab page. Whenever it is on a page, I get a System.InvalidOperationException: TargetControlID is invalid.

    The C1DropDownExtender exhibits the same problem.

    Any ideas??

    Thanks!

    Terry
  • Replied 10 September 2017, 11:43 am EST

    Hi Terry,

    Please put the C1ButtonExtender inside the same C1TabPage as the button which is the TargetControl.
    The id of the button changes when placed inside the C1TabPage or any container and hence C1ButtonExtender cannot recognize it.

    Regards
  • Replied 10 September 2017, 11:43 am EST

    Well... I seriously thought I had tried this, but it's working for me now. I must have been doing something else wrong earlier!

    Thanks!!
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels