This is a migrated thread and some comments may be shown as answers.

Access ascx control from another ascx control

3 Answers 96 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Minas
Top achievements
Rank 1
Minas asked on 06 Nov 2012, 09:16 AM

I am working an Asp.net project, I am loading two user controls into another ascx control which uses RadSplitter to divide them. First, I am loading the control1.ascx and then the control2. After loading both of them inside control2.ascx I want to access a function that reloads some data of control1. I am doing it with the following code:

 private ASP.control1_ascx tree; 
 tree = (ASP.control1_ascx)LoadControl("control1.ascx");
 tree.aload();

When I debug the code, it seems that it calls the aload() function and updates the RadTreeView. But the problem is that I cannot see them after the function is called, instead I can see the correct data after a postback event. Why is this happens?. Is there a solution to see them when I call the function ?

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 08 Nov 2012, 05:34 PM
Hi Minas,

Unfortunately we are not aware of such issue and the provided information was not enough to reproduce it. Could you provide more details regarding specific scenario?
  • Which version of RadControls for ASP.NET AJAX and .NET Framework are used in the application?
  • Could you please provide a simple fully runnable project reproducing the problem so we can investigate it further?
Thank you in advance for your cooperation.

Regards,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Minas
Top achievements
Rank 1
answered on 12 Nov 2012, 02:27 PM
How can i provide you the test project that i developed ?
0
Vessy
Telerik team
answered on 12 Nov 2012, 03:34 PM
Hi Minas,

In order to attach a project you will need to open a formal support ticket and to provide the code in it.

Regards,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Splitter
Asked by
Minas
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Minas
Top achievements
Rank 1
Share this question
or