fillXmlData
Description
지정한 설정에 따라 데이터셋을 로드해서 DataProvider 로컬 저장소에 저장한다.
Syntax
function fillXmlData(data, options)
Parameters
data Type: object
xml 형태의 data.
options
Type: object
DataFillOptions와 같은 내용의 설정 object.
Return value
None.
Examples
gridView.showProgress();
$.ajax({
url: "/DemoData/defaultloaddata.xml?__time__=" + new Date().getTime(),
success: function (data) {
dataProvider.fillXmlData(data, {});
},
error: function (xhr, status, error) {
//$("#loadResult").css("color", "red").text("Load failed: " + error).show();
},
complete: function (data) {
setLoading(false);
gridView.closeProgress();
gridView.setFocus();
},
xhr: function () {
var xhr = new window.XMLHttpRequest();
//Download progress
xhr.addEventListener("progress", function (evt) {
if (evt.lengthComputable) {
gridView.setProgress(0, evt.total, evt.loaded);
}
}, false);
return xhr;
}
});
RealGrid HELP