2016-08-23 6 views
0

행을 동적으로 추가 할 때 또는 DataSource에 바인딩하는 동안 RowIndex를 가져 오는 방법은 무엇입니까?Syncfusion ASP.NET MVC RowIndex

누구든지 제안 할 수 있습니까?

나는 방법

col.Field("Name").HeaderText("Name").Width(90).CustomAttributes(custom => { custom.AddAttribute("name", "'{{ :RowIndex }}'"); }).Add();

TIA 마노

+0

시도한 내용 –

+0

@SunilKumar - 편집 된 질문을 게시하고 코드를 추가 할 수 있습니까? –

답변

0

사용 귀하의 요구 사항이 코드 아래 예 다음 CustomAttribute를 추가하려합니다. 이 경우 jquery 인덱스를 사용하십시오.

col.Field("Name").HeaderText("Name").CustomAttributes(custom => 
         { 
          custom.AddAttribute("name", "'{{:#index}}'"); 
         }).Add();