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

UserControl Event Handling...

3 Answers 89 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Yusuf AKDAG
Top achievements
Rank 2
Yusuf AKDAG asked on 10 Dec 2009, 02:55 AM
Hello mates,
I have a little question, just couldn't figure the solution...

The web application have a structure like;
-interface.aspx (Contains Ajaxmanager)
----manageitems.ascx (dynamicly added to interface with loadUserControl approach - not ajaxified-contains ajaxproxy)
-------itembase.ascx  (added to manageitems.ascx as referance - ajaxified inside radajaxpanel)


my save button in the itembase.ascx and when save succeed, triggers a event as saveComplete..
manageitems.ascx contains a grid.

my scenario requires after saveComplete event triggered refresh the grid in the manageitems.ascx, but nothing happens when I ajaxified them.  But not ajaxified version works.

What you suggest for this scenario?

TIA.








3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Dec 2009, 06:06 PM
Hi Yusuf,

More information about RadAjax and WebUserControls is available in the following articles:
RadAjax and WebUserControls
Loading User Controls
Loading user control with Telerik RadGrid at runtime

Please check them out and let me know if you need additional assistance.

Greetings,

Pavlina
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Yusuf AKDAG
Top achievements
Rank 2
answered on 10 Dec 2009, 09:17 PM
Hello Pavlina,
I read almost every possible thread and articles in telerik site..
Nothing much about usercontrol events. But they're also great..Thanks to Telerik team for them.

For loading user control demo, our dynamic loading approach uses this workaround already.
But in this demos, they're uses one user control and does another tasks..
In our solution structure, interface.aspx loads manageitems.ascx, and manageitems.ascx loads edititem.ascx
the problem is on events..

in Loading User Control demo  there is a line like :
 (this.Page as DefaultCS).LoadUserControl("TasksCS.ascx"); 

but this just reach the page and invoke the event..

In other demos also points the ajaxmanager directly in the page... But the problem is event handling code is not in the page.. They're in user-control which is dynamically loaded.

I'll create out of project demo for the scenario for better understanding..


0
Pavlina
Telerik team
answered on 11 Dec 2009, 10:33 AM
Hi Yusuf, 

Unfortunately, based on the supplied information it is very hard to determine what is causing this unwanted behavior. At this point the best option would be for you to open a formal support ticket, and send us a simple runnable application, for further review.

Looking forward for your reply.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Yusuf AKDAG
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Yusuf AKDAG
Top achievements
Rank 2
Share this question
or