+1-888-365-2779
Try Now
More in this section

Forums / Installation / Sitefinity and r.a.d. Callback

Sitefinity and r.a.d. Callback

12 posts, 0 answered
  1. Bert
    Bert avatar
    22 posts
    Registered:
    06 Dec 2004
    19 Aug 2005
    Link to this post
    Hi,

    Just out of interest I tried rad Callback in one of my Sitefinity projects. I just did a simple test putting a callback button on a user control and a text box to change. The usercontrol is loaded on a Sitefinity page.

    To cut a long story short I found that the callback to change the textbox was significantly slower than using a "normal" postback (I actually had two buttons). When I investigated a bit closer I found that the response using callback was almost 80% larger than the standard postback thing (75k vs 130K). I'm just running on my local machine.

    Are there any issues with coexistence between rad callback and Sitefinity? When I run the live examples thing rad Callback is lightning fast.

    Thanks
    Bert
  2. Vassil Petev
    Vassil Petev avatar
    48 posts
    Registered:
    20 Sep 2016
    19 Aug 2005
    Link to this post
    Hi Bert,

    When developing the first version of r.a.d.callback, we intended it to be used with the built-in controls in ASP.NET 1.x only.

    However our, and our customers', initial tests found some issues with AJAX callback functionality and controls that provide very rich client-side experience (including a lot of javascript). Most of the time a 'Callback error' appears and, to be honest, we are a little surprised that you were able to make it work with Sitefinity, as it is a very complex product.

    We regret to say that the callback has problems with such complex components (these can be seen with all r.a.d.controls as well). This turned out to be the biggest issue we are currently facing and next week we will have the plan for improving the callback to work with complex controls. We will also provide integration examples between r.a.d.controls and r.a.d.callback.

    We are sorry for this. For now, I will suggest to remove the callback from your page (if you haven't done so already) and sue Sitefinity as before. We will have some timelines next week when the callback will be compatible with Sitefinity and r.a.d.controls.

    Have a productive day,
    Robert
    the telerik team
  3. Bert
    Bert avatar
    22 posts
    Registered:
    06 Dec 2004
    19 Aug 2005
    Link to this post
    Thanks for your quick reply.

    Wasn't really that important, just a bit of Friday research that I do now and again.

    rad Callback is a very exciting product and I look forward to you sorting out the issues with complex stuff.

    Have a good week end.

    Bert
  4. Bert
    Bert avatar
    22 posts
    Registered:
    06 Dec 2004
    15 Sep 2005
    Link to this post
    Hi Again,

    Just checking this once again as I now have installed r.a.d. Controls Q3 SP2. It made an improvement to Sitefinity as I can now use Callback on pages managed by Sitefinity (did my simple test again).

    However I have some problems with existing r.a.d. controls in SItefinity. I have narrowed it down to r.a.d. menu in one case. What happens is that When I use calback it raises the call back event (sometimes not) and then I get an error in a big textbox saying that there is missing closing quote or something.

    You should know that I haven't upgraded r.a.d. menu to the latest version in r.a.d Controls Q3 SP2.

    Any further hints on how to go about using this very nice feature in a Sitefinity project?

    Thanks
    Bert
  5. Chris
    Chris avatar
    8 posts
    Registered:
    20 Aug 2015
    16 Sep 2005
    Link to this post
    Hello Bert,
    Could you send us the user control in which you have placed r.a.d.callback and its codebehind?
    Thanks in advance!

    Sincerely yours,
    Chris
    the telerik team
  6. Bert
    Bert avatar
    22 posts
    Registered:
    06 Dec 2004
    17 Sep 2005
    Link to this post
    Hi,

    I have opened a support ticket for r.a.d Callback and attached a sample project with some explanation.

    I will report back here if and when a solution is found.

    Bert
  7. Jim Aderhold
    Jim Aderhold avatar
    48 posts
    Registered:
    29 Feb 2004
    14 Dec 2005
    Link to this post
    I too have added a r.a.d.callback control to a module, the admin section, in Sitefinity 2.0. The callback works well, but it removes all of my navigation in the control panel. The only things that stay are the modules, but they lose there links. It is just the text that shows up.

    The r.a.d.callback control is the button control. I have it setup in a user control which is then added to my modules admin user control.

    Is there a property that needs to be set so that I don't loose the navigation on a callback?
  8. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    15 Dec 2005
    Link to this post
    Hi guys,

    Thank you for reporting this issue - we logged it into our system. For now we would suggest to use the workaround below. 

    Set the following properties of the callback control in the code-behind of the module:

    private void Page_Load(object sender, System.EventArgs e)

         if (CallbackButton1.IsCallback) 
         { 
             CallbackButton1.AutoUpdate = false; 
         }                             
         ...
    }

    Use the ControlsToUpdate property of the callback control (CallbackButton1) to explicitly specify which of the controls should be updated after the callback, for example:

    private void CallbackButton1_Click(object sender, System.EventArgs e) 
    {     
        //update control updatedControl
        CallbackButton1.ControlsToUpdate.Add(updatedControl);
    }

    Your points have been updated.

    Best wishes,
    Vlad
    the telerik team
  9. Jim Aderhold
    Jim Aderhold avatar
    48 posts
    Registered:
    29 Feb 2004
    15 Dec 2005
    Link to this post
    When adding the suggested code, I now get the following error: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client

    This is an error generated by the requestValidator. I have a r.a.d. Editor on the parent control. The callback control is in a child control. When using the CallbackButton, it generates the error.

    I will create a ticket so that I can send you the controls.
  10. Jim Aderhold
    Jim Aderhold avatar
    48 posts
    Registered:
    29 Feb 2004
    15 Dec 2005
    Link to this post
    I went ahead and moved the control under a different panel that doesn't have  a r.a.d.Editor on it. Adding in the code you supplied works now. Thanks for the code.

    As for the error, it was just causing the r.a.d.Editor to not bypass the requestValidation. Maybe something in the javascript for the callback function.
  11. Jim Aderhold
    Jim Aderhold avatar
    48 posts
    Registered:
    29 Feb 2004
    13 Jan 2006
    Link to this post
    Hey guys,

    I am having some issues with the code you gave me in this thread. The code works as far as keeping the Sitefinity control panel navigation from being removed when clicking on the r.a.d.Callback Button. The problem I am facing when doind this is the buttons no longer update the enable/disable state set in the code when making the callback.

    Here's the situation. I have two listboxes and some r.a.d.Callback buttons in between them. What the client is suppose to be able to do is to use the callback buttons to add/remove items from one listbox to the other. The callback works fine and the listboxes update accordingly. The problem lies within the enable/disable of these buttons when the actions cannot be taken because the listbox is empty. Ex. I move all items from the left Listbox to the right ListBox. The button to move the items from left to right should now be disabled. The code for is setting the button's enable="false". But when rendering, the button stays enabled instead of being disabled.

    If I remove the code you sent me to fix the control panel from disapearing, then the button work as expected. But by adding the code you sent me, the buttons do not update as written.

    Look forward to your solution.
  12. Jim Aderhold
    Jim Aderhold avatar
    48 posts
    Registered:
    29 Feb 2004
    13 Jan 2006
    Link to this post
    Ok, guess I should have waited another 30 min so I could brainstorm. I found a solution. I just did the same thing you had me do for the listboxes and added the two callback button to the ControlsToUpdate collection for each callback.

    Callback1.ControlsToUpdate.Add(Callback1)
    Callback1.ControlsToUpdate.Add(Callback2)

    Callback2.ControlsToUpdate.Add(Callback1)
    Callback2.ControlsToUpdate.Add(Callback2)

    I don't know why I didn't try this before. So basically you need to add all controls that will be updated during the callback to the ControlsToUpdate collection in the callback.click event.
12 posts, 0 answered