This question is locked. New answers and comments are not allowed.
Hi Guys,
I create a User Control (implements UserControl), is it possible to add it in ImageAndTextLayoutPanel and remove the other children?
RadListBoxItem item = new RadListBoxItem();
item.Text = "Title" + i;
item.DescriptionText = "Description with very long text";
ImageAndTextLayoutPanel layoutPanel = (ImageAndTextLayoutPanel)item.Children[2];
layoutPanel.Children.Remove(layoutPanel.Children[0]);
layoutPanel.Children.Remove(layoutPanel.Children[0]);
UserControl1 uc = new UserControl1();
something like this:
ayoutPanel.Children.Add(uc);
Thanks in advance.
Regards,
Jay
I create a User Control (implements UserControl), is it possible to add it in ImageAndTextLayoutPanel and remove the other children?
RadListBoxItem item = new RadListBoxItem();
item.Text = "Title" + i;
item.DescriptionText = "Description with very long text";
ImageAndTextLayoutPanel layoutPanel = (ImageAndTextLayoutPanel)item.Children[2];
layoutPanel.Children.Remove(layoutPanel.Children[0]);
layoutPanel.Children.Remove(layoutPanel.Children[0]);
UserControl1 uc = new UserControl1();
something like this:
ayoutPanel.Children.Add(uc);
Thanks in advance.
Regards,
Jay