로딩중...

블로그

setDataValueIndex

public void setDataValueIndex(int intRowIndex, string strColumnId, object objValue) index 값을 이용하여 해당컬럼의 값을 수정한다. 파라미터 int intRowIndex 현재인덱스 string strColumnId 컬럼ID object objValue 값 리턴값 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; mObjDataGrid.setDataValueIndex( “userName”, “홍길동”);

더보기

getDataValueKey

public object getDataValueKey(int intRowKeyNo, string strColumnId); 키값을 이용하여 해당컬럼의 값을 리턴한다. 파라미터 int intRowKeyNo 키값 string strColumnId 컬럼ID 리턴값 컬럼값 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; var strName = mObjDataGrid.getDataValueKey(1, “userName”);

더보기

setDataValueKey

public void setDataValueKey(string strColumnId, object objValue) 키값을 이용하여 해당컬럼의 값을 수정한다. 파라미터 string strColumnId 컬럼ID object objValue 값 리턴값 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; mObjDataGrid.setDataValueKey(1, “userName”, “홍길동”);

더보기

setStringData

public void setStringData(string strData); AJAX로 부터 들어온 외부 데이터(JSON)를 그리드에 로드한다. 파라미터 string strData JSON문자열 리턴값 상세설명 예제 $.ajax({type: “POST”, url:”aaaa.do”, data: {}, success: function(objResponse, strStatus, xhr) { if(strStatus == “success”) { mObjDataGrid.setStringData(JSON.stringify(objResponse.data)); } }, error: function(jqXHR, textStatus, errorThrown) { alert(“에러로 인하여 데이터를 로딩할수 없습니다.”+ errorThrown); } });

더보기

setData

public void setData(ScriptObject objData); AJAX로 부터 들어온 외부 데이터(JSON)를 그리드에 로드한다. 파라미터 ScriptObject objData JSON객체 리턴값 상세설명 예제 $.ajax({type: “POST”, url:”aaaa.do”, data: {}, success: function(objResponse, strStatus, xhr) { if(strStatus == “success”) { mObjDataGrid.setData(objResponse.data); } }, error: function(jqXHR, textStatus, errorThrown) { alert(“에러로 인하여 데이터를 로딩할수 없습니다.”+ errorThrown); } });

더보기

loadData

public void loadData(); 서버로 부터 데이터 수신하여 그리드데이터를 가져온다.(WCF/Restful 전용) 파라미터 리턴값 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; mObjDataGrid.loadData();

더보기

getRowBackGroundColorFilter

public string getRowBackGroundColorFilter(); Row의 백그라운드 처리를 할 JavaScript function명을 설정/리턴한다. 파라미터 리턴값 function명 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; var strJSName = mObjDataGrid.getRowBackGroundColorFilter();

더보기

setRowBackGroundColorFilter

public void setRowBackGroundColorFilter(string strRowBackGroundColorFilter); Row의 백그라운드 처리를 할 JavaScript function명을 설정/리턴한다. 파라미터 string strRowBackgroundColor 백그라운드 색상 리턴값 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; mObjDataGrid.setRowBackgroundColor(“#FFEBF4FC”); mObjDataGrid.setRowBackGroundColorFilter(“RowBackGroundColorFilter”); function RowBackGroundColorFilter(strColumnId, strValue) { var strRowBackGroundColor; if (strColumnId == ‘childCnt’ && strValue > 0) { strRowBackGroundColor = “yellow”; } return strRowBackGroundColor; } Sekä verenluovuttajien että potilaiden veriryhmäjakauma on sama, joten kaikkien […]

더보기

getRowBackgroundColor

public string getRowBackgroundColor(); Row의 백그라운드 색상을 리턴한다. 파라미터 리턴값 백그라운드 색상 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; var strColor = mObjDataGrid.getRowBackgroundColor();

더보기

setRowBackgroundColor

public void setRowBackgroundColor(string strRowBackgroundColor); Row의 백그라운드 색상을 설정한다. 파라미터 string strRowBackgroundColor 백그라운드 색상 리턴값 상세설명 예제 mObjDataGrid = document.getElementById(“slDataGrid”).Content.EntryPoint; mObjDataGrid.setRowBackgroundColor(“#FF0000”);

더보기