In continue to my previous posts related to RadGrid for ASP.NET AJAX client-side data-binding, I've created new example how to bind the grid to a WCF service:

Untitled

web.config service registration:

<system.serviceModel> 
    <behaviors> 
        <serviceBehaviors> 
            <behavior name="ServiceBehavior">  
                <serviceMetadata httpGetEnabled="true"/>  
                <serviceDebug includeExceptionDetailInFaults="false"/>  
            </behavior> 
        </serviceBehaviors> 
        <endpointBehaviors> 
            <behavior name="jsonBehavior">  
                <enableWebScript/> 
            </behavior> 
        </endpointBehaviors> 
    </behaviors> 
    <bindings> 
        <webHttpBinding> 
            <binding name="jsonBinding"/>  
        </webHttpBinding> 
    </bindings> 
    <services> 
        <service behaviorConfiguration="ServiceBehavior" name="Service">  
            <endpoint address="" binding="webHttpBinding" behaviorConfiguration="jsonBehavior" contract="IService" bindingConfiguration="jsonBinding">  
                <identity> 
                    <dns value="localhost"/>  
                </identity> 
            </endpoint> 
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>  
        </service> 
    </services> 
</system.serviceModel> 

Enjoy!

[Download]


About the Author

Vladimir Enchev

is Director of Engineering, Native Mobile UI & Frameworks

Comments

Comments are disabled in preview mode.