Read DataSource from Route Name?

2 posts, 0 answers
  1. Richard
    Richard avatar
    122 posts
    Member since:
    Feb 2009

    Posted 04 May 2018 Link to this post

    Is it possible to read a DataSource using a Route Name rather than a Controller / Action ? 

    // Controller & Action
    .Transport(m => m.Read("GetPagedGridData""GridView"new ..... 
     
     
    // Route Name ??
    .Transport(m => m.Read("MyRouteName??"new ..... 
  2. Dimitar
    Admin
    Dimitar avatar
    807 posts

    Posted 09 May 2018 Link to this post

    Hello Richard,

    The DataSource Transport Read Url option can be utilized as follows:
    .DataSource(dataSource => dataSource       
      .Custom()        
      .Schema(schema => schema.Model(m => m.Id(p => p.ProductID)))
      .Transport(transport =>
      {
        transport.Read(read =>
            .DataType("jsonp")
        );           
      })
    )


    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top