Perfomance ejgrid touch mobile
Good morning I'm testing the grid and I'm trying on a mobile device, but I do not have good performances during the scroll I can not figure out what to enable keeping properties FrozenColumns = "1" AllowSearching = "true" IsResponsive = "true" AllowSorting = " true "AllowScrolling =" true "AllowTextWrap =" true " under the code used
Good afternoon doing other tests I set the following properties AllowPaging = "true" AllowSearching = "true" AllowFiltering = "false" AllowGrouping = "false" IsResponsive = "false" AllowSorting = "true" AllowScrolling = "false" AllowTextWrap = "false" CssClass = "gridfont" Locale = "it-IT" EnableTouch = "true" removing the property FrozenColumns = "1" because it seems that it can not exist only IsResponsive = "true" but I have to use AllowScrolling = "true". It seems more stable. But scrolling horizontally the column description moves before the selected row scrolls. Another anomaly that I noticed is that in responsive on mobile if the device is in vertical appears the scrool of 'height. Graazie for the help.
Good morning, ok for the Frozen columns property. For the rest I would like to use the grid as in the attached video also for tables with many columns I prefer the scroll. But on mobile the behavior is not fluid and does not flow well, both for the horizontal and vertical scroll, highlighting the problem of the previous message. Attached the sample video.
Attachment: WhatsApp_Video_20180527_at_10.55.02.mp4_8bed4b41.zip
|
<!DOCTYPE html>
<head runat="server">
<title></title>
</head>
<body>
<div id="Grid"></div>
<script>
var grid = new ej.grids.Grid({
dataSource: data,
height:350,
columns: [
. . .
]
});
grid.appendTo('#Grid');
</script>
</body>
</html>
|
Good morning, but you can not fix it by correcting JS 1 not forcing to switch to JS 2. Because this involves me changing all the logic of the project.
Thanks in advance
<div class="control-section">
<div class="content-wrapper">
<div id="Grid1">
</div>
</div>
<script>
var data = new ej.data.DataManager({
//GetChartData5
url: "HomeAgentiTest.aspx/MyTableTest",
//adaptor: "UrlAdaptor",
//adaptor: new ej.data.UrlAdaptor(),
//crossDomain: false,
offline: false, adaptor:"UrlAdaptor"
//adaptor:"WebMethodAdaptor",
});
var grid = new ej.grids.Grid({
dataSource: data,
height: 350,
columns: [
{ field: 'MessageNumber', headerText: 'Agente', width: 130, textAlign: 'Right' },
{ field: 'Subject', headerText: 'DescRagg', width: 170 },
]
});
grid.appendTo('#Grid1');
</script>
</div>
FILE cs :
[System.Web.Script.Services.ScriptMethod()]
[System.Web.Services.WebMethod]
public DataTable MyTableTest()
{
int count = 10;
DataTable dtMessages = new DataTable(); // Creating datatable.
dtMessages.Columns.Add("MessageNumber");
dtMessages.Columns.Add("Subject");
dtMessages.Columns.Add("DateSent");
dtMessages.TableName = "dtMessages";
for (int i = count; i >= 1; i--)
{
dtMessages.Rows.Add();
dtMessages.Rows[dtMessages.Rows.Count - 1]["MessageNumber"] = i;
dtMessages.Rows[dtMessages.Rows.Count - 1]["Subject"] ="Ciccio";
dtMessages.Rows[dtMessages.Rows.Count - 1]["DateSent"] = "data";
}
return dtMessages;
If you help me it is the solution I prefer to use js2.
I await your precious help, thanks in advance, good morning }
- 18 Replies
- 6 Participants
-
CS Carmelo Scarpello
- May 24, 2018 08:37 AM UTC
- Jun 12, 2018 04:28 PM UTC