Prasanna,
Thanks for the response. Here are the answers to your questions.
Prasanna,
Thanks for the sample. The sample that you sent worked correctly; however, after making some modifications to the web page I was able to cause the web page to stop scrolling again.
The key difference is that in your sample the grid is bound to "object" and passed in the field names, c.Field("OrderDate"), while my sample was grid was bound to the object type and added the fields by c.Field(r => r.OrderDate)
@(Html.EJ().Grid<object>("TradesGrid")
c.Field("OrderDate").Format("{0:MM-dd-yy HH:mm:ss}").HeaderText("Entered").Add();
c.Field("Freight").Format("{0:C2}").TextAlign(TextAlign.Right).HeaderText("Enter").Add();
Which results in the following HTML:
$("#TradesGrid").ejGrid({
"allowPaging": true,
"allowTextWrap": true,
"allowSorting": true,
"showColumnChooser": true,
"allowFiltering": true,
"allowGrouping": true,
"allowSelection": false,
"selectedRowIndices": [],
"cssClass": "",
"allowReordering": true,
"columns": [
{ "field": "OrderDate", "headerText": "Entered", "format": "{0:MM-dd-yy HH:mm:ss}" },
{ "field": "Freight", "headerText": "Enter", "textAlign": "right", "format": "{0:C2}" }],
"pageSettings": { "pageSize": 20 },
"filterSettings": { "filterType": "Excel", "filteredColumns": [] }
});
@(Html.EJ().Grid<TestRow>("TradesGrid")
c.Field(r => r.OrderDate).Format("{0:MM-dd-yy HH:mm:ss}").HeaderText("Entered").Add();
c.Field(r => r.Freight).Format("{0:C2}").TextAlign(TextAlign.Right).HeaderText("Enter").Add();
Which results in the following HTML - notice the addition of "type:" "datetime" on the OrderDate column
$("#TradesGrid").ejGrid({
"allowPaging": true,
"allowTextWrap": true,
"allowSorting": true,
"showColumnChooser": true,
"allowFiltering": true,
"allowGrouping": true,
"allowSelection": false,
"selectedRowIndices": [],
"cssClass": "",
"allowReordering": true,
"columns": [
{ "field": "OrderDate", "headerText": "Entered", "format": "{0:MM-dd-yy HH:mm:ss}", "type": "datetime" },
{ "field": "Freight", "headerText": "Enter", "textAlign": "right", "format": "{0:C2}" }],
"pageSettings": { "pageSize": 20 },
"filterSettings": { "filterType": "Excel", "filteredColumns": [] }
});
The key difference is that as soon as "type:" "datetime" is specified then the web page will stop scrolling after the data is loaded via json.
This issue occurs on the iPhone 6 and 7 and the iPad Pro. I tested it this weekend on a Mac and the issue does not appear on Safari on the Mac.
Regards, Jeff
Prasanna,
Hope you are doing well.
Did you see my last reply that the sample you provided, with a minor change, had the problem with the web page not scrolling? I also provided a version in JavaScript that has the problem.
Regards, Jeff
@(Html.EJ().Grid<TestRow>("TradesGrid")
c.Field(r => r.OrderDate).Format("{0:MM-dd-yy HH:mm:ss}").HeaderText("Entered").Add();
c.Field(r => r.Freight).Format("{0:C2}").TextAlign(TextAlign.Right).HeaderText("Enter").Add();
|
Prasanna,
I think it was version 15.1.0.41.
Regards, Jeff