Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7496943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:51:43+00:00 2026-05-29T18:51:43+00:00

I try using Devexpress Layout-Control (For costume usage). So I want add all item’s

  • 0

I try using Devexpress Layout-Control (For costume usage). So I want add all item’s exist in Available-Item Section to Layout-Control root as Layout-Item via code .

So it must be possible, But How? (I don’t know, any solution 😉

Edit 1 sorry For less information at first time

Let me explain What I do in My example, I Use code to create one or more Control in Layout-Control at Form-Loaded Event.

After that in one Button_Click, I Use :

 Layout1.WriteToXML(XmlWriter_Object);

to save Layout Current View. These step work well! if I want recover that view at next step with this command :

 Layout1.ReadFromXML(XmlReader_Object);

As Result I got all item’s(which created via code) in Available-Item Section! So this is My problem!

Why These Happend?

Ps: Both XmlReader_Object and XmlWriter_Object refer same file on machin.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:51:47+00:00Added an answer on May 29, 2026 at 6:51 pm

    To move an item from the Available Items list onto the LayoutControl, do the following.

    1) Remove the item from the LayoutControl.AvailableItems collection:

    layoutControl1.AvailableItems.Remove(item1);
    

    2) Add this item to the layout. For instance, you can use the following code to append the item to a group:

    layoutGroup1.Children.Add(item1);
    

    Update on Edit1:

    When creating layout items dynamically(in code), it is necessary to register their identifiera(names) using the RegisterName method. The code can look as follows:

    LayoutItem layoutItem1 = new LayoutItem()
    {
        Name = "Item1",
        Label = "Item1",
        Content = new Button()
        {
            Content = "Button"
        }
    };
    RegisterName(layoutItem1.Name, layoutItem1);
    layoutGroup1.Children.Add(layoutItem1);
    

    This way, everything should work as expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Out of habit I've been using try/catch blocks in my application code for all
Good Morning All, I have code similar to the following try{ using(var tx =
I try using let to define an expression definition, but all I get is
I want to try using QML ShaderEffectItem on QGraphicsView I have cloned files from
When I try using include to add php code to a sendmail script called
I want to try using channel-API between my GAE app and the iphone. I'm
When I try using unit tests (Microsoft vs2010-embedded testing framework) with MVC3, all unit
I'm getting this warning message when I try using Segmented control with style Rounded
Hi Im using devexpress . I want to know how to get the value
I try using evt.parent.attr(id) inside jsddm_close, but it doesn't work. <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js></script> <script

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.