Thread Rating:
  • 393 Vote(s) - 2.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
グリッド行選択について
04-17-2013, 10:08 AM,
#1
Exclamation  グリッド行選択について
グリッド行の複数行を選択したときにCTRLキーを押しながら選択すると思いますが
CTRLキーを押さないまま複数行を選択することが可能でしょうか?

意図:CTRLキーを押したまま複数行を選択した場合、CTRLキー押すのを忘れて別行を選んだ時
選択した行が解除されるため。

FYI:現在全選択チェックボックスは設けております。

04-17-2013, 02:09 PM,
#2
RE: グリッド行選択について
この変更でどうでしょうか?

PHP Code:
{define-class public SwichSelectRecordgrid {inherits RecordGrid}
  
field private switch-selection?:bool false
  
{constructor public {default switch-selection?:bool=false, ...}
    
set self.switch-selection? = switch-selection?
    {
construct-super {splice ...}}
  }

  {
method public {select-record
                     index
:int,
                     
additive?:bool false
                 
}:void
    
|| new behavior
    
{if self.switch-selection?  then
        
{if {self.selection.contains-recordindexthen
            
{self.deselect-record index}
         else
            {
super.select-record
                index

                
additive? = true
            
}
        }
        
     || default 
behavior
     
else
        {
super.select-record index
            
additive? = additive?
        }
    }
    
  }


Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('889')