In the sample online scenario "RadGrid bound to WCF Web Service" the sample code binds to a WCF method. The sample client settings are below (I copied them straight from the sample code)
<ClientSettings>
<DataBinding SelectMethod="GetDataAndCount" Location="GridWcfService.svc"
SortParameterType="Linq" FilterParameterType="Linq">
</DataBinding>
</ClientSettings>
Now if the endpoint (which GetDataAndCount() belongs) requires message level encryption how do I provide credentials as part of the client call?
For instance in the code behind the following is how I would have performed this on the server side...
MySampleClient ac = new MySampleClient("SampleEndpointWSHttpBinding");
ac.ClientCredentials.UserName.UserName = Session["Username"].ToString();
ac.ClientCredentials.UserName.Password = Session["Password"].ToString();
List<DataPoints> dp = ac.GetDataAndCount(...);
So how do you do this on the client side. Any help appreciated