Finding the tag in an expander control

Originally Posted 22 May 2013, 4:27 am EST

  • Originally Posted 22 May 2013, 4:27 am EST

    Need to change the header tag by reading a resource file text when running my asp.net page. I have found out how to change the grouping text in the following way:

    Dim c1Exp As C1.Web.Wijmo.Controls.C1Expander.C1Expander = DirectCast(control, C1.Web.Wijmo.Controls.C1Expander.C1Expander)
    c1Exp.HeaderPanel.GroupingText = GetString(PageName & control.ID) '<- this reads my resource file

    I have found out to do this for the C1Tabs control. What I do in a C1tabs is this:
    Dim c1Tab As C1.Web.Wijmo.Controls.C1Tabs.C1TabPage = DirectCast(control, C1.Web.Wijmo.Controls.C1Tabs.C1TabPage)
    c1Tab.Text = GetString(PageName & control.ID)

    Cannot find out how to do this with the header tab in the C1Expander. Can you help me with this?

    r. Bo
  • Reply

    Hello Bob,

    If you want to change the header content then you can do so with the following code:

    Dim headerContainer = DirectCast(C1Expander1.Controls(0), C1.Web.Wijmo.Controls.C1Expander.C1ExpanderHeaderContainer)
    Dim headerContent = DirectCast(headerContainer.Controls(0), System.Web.UI.LiteralControl)
    headerContent.Text = "New Content"


    Regards
Need extra support?

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

Learn More

Forum Channels