/// <summary> /// Specifies the URL used to load JSON data. /// </summary> /// <param name="url">A URL string.</param> public StaticJsonDataSourceBuilder Url(string url) { url = Portability.GetContentUrl(base.ViewContext, url); StoreOptions["load"] = new JRaw("function() { return $.getJSON(" + JsonUtils.SafeSerialize(url) + "); }"); return(this); }
public RemoteFileProviderBuilder Url(string url) { base.StoreOptions["endpointUrl"] = Portability.GetContentUrl(base.ViewContext, url); return(this); }