This is a migrated thread and some comments may be shown as answers.
Read DataSource from Route Name?
1 Answer 40 Views
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Veteran
Iron
Richard asked on 04 May 2018, 01:05 PM

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 ..... 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 May 2018, 05:56 AM
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.
Asked by
Richard
Top achievements
Rank 1
Veteran
Iron
Answers by
Dimitar
Telerik team
Share this question
or