Ext JS 3.1 Designed Class Diagram PDF 버전


출처 : rhio.tistory.com
Posted by 암리타 :

검색한 후 검색어를 적용하면서 페이지를 이동하는 경우 검색어등의 파라미터를 넘길경우 아래와 같이 하면 된다.

   store.on({
      'beforeload':{
         fn: function(store, options){
            Ext.apply(options.params, {stext: document.getElementById('searchVal').value});
         }
      }
    });


Posted by 암리타 :
검색어를 전송할 경우 한글이 깨지는 현상이 발생할 경우에 아래와 같이 하면 된다.

1) 로케일 파일 추가
<script type="text/javascript" src="/ext/source/locale/ext-lang-ko.js" charset="utf-8"></script>

2) request 파일 받는쪽에서 캐릭터셋 설정
request.setCharacterEncoding("utf-8");

Posted by 암리타 :

기본적으로 text값이 넘어갈 경우 hiddenName 을 추가적으로 입력하면 된다.

            new Ext.form.ComboBox({
               store : new Ext.data.SimpleStore({
                  fields : ['value', 'text1'],
                  data:[['name','이름'],
                        ['jumin','주민등록번호'],
                        ['contractno','계약번호']
                      ]
               }),
               id:'skind',
               name:'skind',
               hiddenName  : 'skind',
               fieldLabel : '검색조건',
               typeAhead: true,
               triggerAction: 'all',
               width:135,
               mode:'local',
               displayField:'text1',
               valueField:'value',
               value:'name',
               allowBlank:false,
               forceSelection:true,
               editable:false

'프로그래밍 > ExtJS' 카테고리의 다른 글

[ExtJS] Ext JS 3.1 Designed Class Diagram  (0) 2010.01.18
[ExtJS] store reload 시 파라미터 넘기기  (0) 2010.01.17
[ExtJS] 한글 전송하기  (0) 2010.01.17
Posted by 암리타 :