More dynamic issues

4 posts, 0 answers
  1. Alex Peachey
    Alex Peachey avatar
    56 posts
    Member since:
    May 2006

    Posted 07 May 2007 Link to this post

    I've been continuing on working on creating my page that uses dynamically created docks.

    Issues I've run into:
    1. I tried making it so I can create a dock dynamically by clicking a button. This works, but if I try to "Ajaxify" the process with adding a RadAjaxManager (Prometheus) then odd things happen. I set the firing control to the button and the target to the RadDockLayout control. I click the button and a dock shows up as expected, but it is frozen, can't be moved, and none of the command buttons work. There is a javascript error on the page and I can post that later if need be.
    2. If I don't hook up a RadAjaxManager, then my button causes a postback and the dock is created and I can move it around and it is fully functional, so that is good. The problem lies in that inside the dock I have a user control. If I leave the dock where it is initially created, then I can click the buttons in my user control and they work as expected. If I move the dock, once moved, the buttons in my user control cease to work. It's as if moving the dock causes the buttons to not postback or something.
    3. I have tried to "Ajaxify" the user control in the dock. I tried a few methods. One try I use an RadAjaxManager in the main page and when I dynamically create the control and stick it in the dock I also set the AjaxSettings in code using FindControl on my user control in order to get the items. If i do this, I get a message popping up saying the button in user control could not be found in the update panel. Since this didn't seem to work how I wanted, I tried a different approach and inside my user control I just wrapped the whole thing in a RadAjaxPanel. This didn't throw any errors, but it also didn't convert any of the postback events into callbacks. I could see my browser reloading the page on each click.
    4. Finally, if I don't try to Ajaxify anyhing and use only postbacks, everything seems to work (except the issue in 2) but another odd thing happens. I click a button and a dock is created with my user control inside it. I then click a button on my user control and a postback seems to occur, but it appears the desired effect of the button click doesn't occur. If I click it again, then it works as expected. For some reason the first click seems to get "eaten." After that first click, all subsequent clicks (on any control) work without issue.

  2. surfer
    surfer avatar
    585 posts
    Member since:
    Jul 2003

    Posted 07 May 2007 Link to this post

    From what I've seen in the forums recently, it seems that the following line in the web.config of the application:

    <pages enableEventValidation="false">

    causes an ajaxified application to behave randomly in a similar fashion to what you describe. This was discovered by Jason Maronge in the following forum thread

    http://telerik.com/community/forums/thread/b311D-thhaa.aspx

    Can you check if you have this setting in web.config and if removing it affects the application in any way?
  3. Alex Peachey
    Alex Peachey avatar
    56 posts
    Member since:
    May 2006

    Posted 07 May 2007 Link to this post

    Thanks for the suggestion, but it looks like I don't have that set so that isn't the problem.
  4. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 10 May 2007 Link to this post


    Hi Alex,
     
    Could you please open a new support ticket and send us simple running example where these issues could be observed?
    Some of the issues which you experienced are already fixed and the fixes will be available on the 2st1 of May when RadDock Prometheus will be updated.

    Kind regards,
    Petio Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top