Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nathan Woulfe 422 posts 1580 karma points MVP 3x c-trib
    Aug 10, 2012 @ 08:04
    Nathan Woulfe
    0

    User control with uComponents - migrating to v.48

    Hi 

    I have a user control (a dashboard) that includes a MNTP instance. In 4.7.x, I used the code below to render the MNTP, which worked fine:

    //Fields for MNTP.
    private string _MNTPNodes; private MNTP_DataEditor _MNTPNodes_DataEditor;
    protected override void OnInit(EventArgs e)
    {
    base.OnInit(e);
            //Add the MNTP
            DataTypeDefinition MNTPNodesDatatype = DataTypeDefinition.GetDataTypeDefinition(1034);
            _MNTPNodes_DataEditor = (MNTP_DataEditor)((AbstractDataEditorControl)MNTPNodesDatatype.DataType.DataEditor).Control;
            _MNTPNodes_DataEditor.PreRender += new EventHandler(MNTPNodes_PreRender);
            phMNTP.Controls.Add(_MNTPNodes_DataEditor);
    } protected void MNTPNodes_PreRender(object sender, EventArgs e) { XDocument xmlDocument = new XDocument(); if (!string.IsNullOrEmpty(_MNTPNodes)) { xmlDocument = XDocument.Parse(_MNTPNodes); } _MNTPNodes_DataEditor.XmlValue = xmlDocument; _MNTPNodes_DataEditor.DataBind(); }

     

    With the integration of uComponent in the 4.8 core, how would I replicate this? 

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies