UserControl Event Handling...

4 posts, 0 answers
  1. Yusuf AKDAG
    Yusuf AKDAG avatar
    8 posts
    Member since:
    Apr 2006

    Posted 09 Dec 2009 Link to this post

    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.








  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 10 Dec 2009 Link to this post

    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.
  3. Yusuf AKDAG
    Yusuf AKDAG avatar
    8 posts
    Member since:
    Apr 2006

    Posted 10 Dec 2009 Link to this post

    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..


  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 11 Dec 2009 Link to this post

    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.
Back to Top