【问题标题】:How do i get the url that kendo builds on the client我如何获取 kendo 在客户端上构建的 url
【发布时间】:2016-04-23 07:48:27
【问题描述】:

【问题讨论】:

    标签: javascript filter kendo-ui odata kendo-datasource


    【解决方案1】:

    Kendo 确实会根据应用于小部件的端点、过滤器、排序等生成 url。

    编辑:以下是访问请求 url 的方法。

    dataSource: {
      transport: {
          read: {
             url: url,
             dataType: type, // "json"
             beforeSend: function (e, request) {
                var requestUrl = request.url
             }
          }
       }
    }
    

    【讨论】:

    • 您好,这似乎为我提供了设置数据源时配置的选项,但未提供已构建的过滤器(即 ?%24format=json&%24expand=PSeller%2C+Geography&%24top=20& %24orderby=PSEllerName&%24filter=((Geography%2FSubsidiaryDistrictId+eq+11182+or+Geography%2FSubsidiaryDistrictId+eq+11179)+and+(Geography%2FSubsidiaryId+eq+161+or+Geography%2FSubsidiaryId+eq+49)+and +Geography%2FAreaId+eq+5)&%24count=true)
    • 感谢您的帮助!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多