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

Values not passed throw the WCF WebService?

3 Answers 77 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 08 Nov 2008, 08:32 PM
Hello we actually moving all our "asmx" to "svc (WCF)" webservice, but some Telerik controls such as Tooltip does'nt work.
When i go in debug mode the method is called, but the "object" paramters is a string valus "{object}" instead of a "IDictionary<string, object>" so we cannot get the values. The tooltip will show the "return string" but in reallity we need to got some data base on context parameters and we can't...

Does Telerik support WCF webservice?
Thanks

SimpleService.svc
-----------------------------
[ServiceContract]  
[AspNetCompatibilityRequirements(  
        RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]  
public class SimpleService
{
    [OperationContract]  
    public string GetToolTipData(object context)
    {
        return "Hello World My My";
    }
}

Page.aspx
---------------------------
         <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomRight"
                Animation="Fade" Skin="Web20" Width="400px" Height="250px" Style="font-size: 18px;
                text-align: center; font-family: Arial;" Sticky="true" AutoCloseDelay="500" BorderStyle="Dotted" ContentScrolling="Auto" ShowDelay="150" HideDelay="300" ManualClose="True">
                <WebServiceSettings Method="GetToolTipData" Path="SimpleService.svc" />
                <TargetControls>
                    <telerik:ToolTipTargetControl TargetControlID="Button1" Value="1" />
                    <telerik:ToolTipTargetControl TargetControlID="Button2" Value="2"/>
                </TargetControls>
        </telerik:RadToolTipManager>
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <asp:Button ID="Button2" runat="server" Text="Button" />

SimpleSerc

3 Answers, 1 is accepted

Sort by
0
Alexandre
Top achievements
Rank 1
answered on 11 Nov 2008, 05:04 PM
Please... any awnser? WCF not supported by telerik?
0
Accepted
Svetlina Anati
Telerik team
answered on 12 Nov 2008, 12:36 PM
Hi Alexandre,

Basically, you have to modify your WCF web service, so it uses JSON in order to be compatible with AJAX. We prepared for you a working sample and it is attached to the thread. Here is also a link to an excellent article by Dino Esposito that explains the issues in detail.

All the best,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alexandre
Top achievements
Rank 1
answered on 12 Nov 2008, 01:55 PM
Perfect... real thanks for this custom example!!
Tags
ToolTip
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Alexandre
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or