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 veriryhmien luovuttajia tarvitaan. Olin kuitenkin yhteydessä sivuston pitäjiin, mutta he halusivat pitää kiinni nimestään. Omaapteekki.com sinänsä on ihan hyvä, että maailma ei ole vielä valmis, ja tekemistä riittää.

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");

getIsUseKeyEvent

public bool getIsUseKeyEvent();

키보드 이벤트 사용여부를 리턴한다

  • 파라미터
  • 리턴값

사용여부

  • 상세설명
  • 예제
mObjDataGrid = document.getElementById("slDataGrid").Content.EntryPoint;
var isUseKeyEvent = mObjDataGrid.setIsUseKeyEvent();

setIsUseKeyEvent

public void setIsUseKeyEvent(bool booIsUseKeyEvent);

키보드 이벤트 사용여부를 설정한다.

  • 파라미터

bool booIsUseKeyEvent 사용여부

  • 리턴값
  • 상세설명

사용시, 키보드의 Insert키를 눌러 Row를 추가, Delete키를 눌러 Row를 삭제 할수 있다.

  • 예제
mObjDataGrid = document.getElementById("slDataGrid").Content.EntryPoint;
mObjDataGrid.setIsUseKeyEvent(true);

getIsReadOnly

public bool getIsReadOnly();

그리드의 상태를 읽기전용으로 할지에 대한 여부를 리턴한다.

  • 파라미터
  • 리턴값

읽기전용여부

  • 상세설명
  • 예제
mObjDataGrid = document.getElementById("slDataGrid").Content.EntryPoint;
var isReadonly = mObjDataGrid.getIsReadOnly();

setIsReadOnly

public void setIsReadOnly(bool booReadOnly);

그리드의 상태를 읽기전용으로 할지에 대한 여부를 설정한다.

  • 파라미터

bool booReadOnly 읽기전용여부

  • 리턴값
  • 상세설명
  • 예제
mObjDataGrid = document.getElementById("slDataGrid").Content.EntryPoint;
mObjDataGrid.setIsReadOnly(true);