Hello
I am using DataManager with Adapters.ODataV4Adaptor. I want the incoming Json information to be compressed. How do I need to do this.
Thanks a lot...
Hi Renjith
I am using SfPivotView for some reports. I pull data from Odata service. The amount of rows can be too much. There is no problem in the query part in the database, but there may be slowness during the transfer of this data.
I turned on the compression feature on the Odata side. When you make a request with Postman, the data is compressed and it comes faster.
Reards
Seçkin
Hi
is there any new information?
Regards
|
<SfGrid TValue="Order" AllowPaging="true">
<SfDataManager @ref="DataManagerRef" Url=https://services.odata.org/V4/Northwind/Northwind.svc/Orders/ Adaptor="Adaptors.ODataV4Adaptor"></SfDataManager>
...
</SfGrid>
@code{
...
public SfDataManager DataManagerRef { get; set; }
protected override void OnAfterRender(bool firstRender)
{
if (firstRender) {
DataManagerRef.DataAdaptor = new NewODataClass(DataManagerRef);
}
base.OnAfterRender(firstRender);
}
public class NewODataClass : ODataV4Adaptor
{
public NewODataClass(DataManager dm) : base(dm)
{
}
public override async Task<object> ProcessResponse<T>(object data, DataManagerRequest queries)
{
HttpResponseMessage response = data as HttpResponseMessage;
//you can customize the response here
var ActualReturnValue = await base.ProcessResponse<T>(data, queries);
return ActualReturnValue;
}
}
}
|