2016-08-23 11 views
0

行を動的に追加するときやDataSourceにバインドするときにRowIndexを取得するにはどうすればよいですか?Syncfusion ASP.NET MVC RowIndex

誰でもお勧めしますか?

は私が道

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

TIA Manojさん

+0

あなたが試したもの –

+0

@SunilKumar - 編集された質問とコードを追加しました。 –

答えて

0

使用 あなたの条件のため、このコードは、以下の例を以下にCustomAttributeを追加しようとしています。これにはjquery indexを使います。

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