2013-08-14 5 views
0

안녕하세요, Telerik GridView i cach 이벤트 (행을 두 번 클릭)를 사용하면 작동합니다. 자바 스크립트 다음 코드는자바 스크립트에서 GridView (행 클릭)에서 값을 가져 오는 방법

function RadGrid1_OnRowDblClick(sender, args) { 
       console.log(sender); 

      } 


Now i need to get value from this Row (this row have ProductID,ProductLoad,Distance),i my case i need the ProductID of the row that i double clicked. 

Sow how can i do this? 

이 바로 ANS args.getDataKeyValue ("제품 ID")

그러나 인 RadGrid1_OnRowDblClickargs.get_itemIndexHierarchical();를 호출

<MasterTableView Width="100%" ClientDataKeyNames="ProductID"> 
     </MasterTableView> 

답변

0

당신에게 행을 제공 추가하는 것이 매우 중요 더블 클릭 한 번호. 이게 네가 찾고 있던거야?

+0

아니요 ProductID, ProductLoad와 같은 행에서 가치가 필요합니다. –

+1

'args.getDataKeyValue ("ProductID")'등을 수행 할 수 있습니다. – Vidhuran

+1

[여기에 예제가 있습니다.] – Vidhuran

관련 문제