Hello, I have the following problems:
1. As the DataSourse is updated after pressing a button, you have a list of data and when you press the button you want to change the list of data, in my case you are using DataManager with Web Adapter.
2. When a list of more than 50 records is retrieved and it is displayed in the Spreadsheet, it is repeated from the first record, since all the records are not the same.
Hi Janakiraman Sakthivel,
Thanks, I send some images of the problem, there is a method to recover data 50 records, with 40 columns approximately and that happens.
.....
I attach code.
Thanks for the reply.
1. Use the code provided, now I have the query, how can I use batchChanges () in javascript ?, make modifications and tests, I cannot perform this operation?
I send the code that I am testing.
Hello Janakiraman Sakthivel,
Is there an alternative solution to what is indicated above?
Thanks
|
<input type="button" value="Actualizar" id="AddInformacion" onclick="updateActualizar()" />
<div>
<ej:DataManager ID="dataManager" runat="server" URL="http://js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/Orders/"/>
</div>
<ej:Spreadsheet ID="FlatSpreadsheet" ShowRibbon="false" runat="server">
<Sheets>
<ej:Sheet DataManagerID="dataManager" Query="ej.Query().take(50).select(['OrderID', 'CustomerID', 'EmployeeID', 'ShipName', 'ShipAddress',])" PrimaryKey="OrderID">
</ej:Sheet>
</Sheets>
</ej:Spreadsheet>
function updateActualizar() { var xlObj = $('#<%=FlatSpreadsheet.ClientID%>').data("ejSpreadsheet");
changes = xlObj.getSheet(xlObj.getActiveSheetIndex()).batchChanges.changed;
if (changes.length) {
alert("Se tiene datos modificados !!!");
}
}
|