This is a migrated thread and some comments may be shown as answers.

RadGrid

2 Answers 208 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Claudinei
Top achievements
Rank 1
Claudinei asked on 22 Jul 2008, 12:29 AM

Ola,

Estou testando o objeto RADGRID / ASP.NET AJAX 2008 Q1 no VB2008 e, estou precisando de ajuda na seleção de valores na GRADE. 

Ex: 

ID

 NOME

1

CLAUDINEI

2

TELERIK

Queria saber como pego o valor de uma coluna especifica quando clicar na linha? 

Agradeço a ajuda, Claudinei.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Jul 2008, 05:22 AM
Hello Claudinei,

You can use client key/values to get desired value for desired column. Please check this example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Keys/DefaultCS.aspx

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shinu
Top achievements
Rank 2
answered on 22 Jul 2008, 08:10 AM
Oi Claudinei,

Está tentando acessar o texto de uma GridColumn clicar sobre a linha? Aqui eu tenho o conjunto EnablePostBackOnRowClick a verdadeira e, no evento ItemCommand Estou tentando acessar a célula de valor para a linha clicado.

CS:
  protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (e.CommandName == "RowClick") 
        { 
            GridDataItem item = (GridDataItem)e.Item; 
            string strtxt = item["columnUniqueName"].Text.ToString(); 
        } 
   } 


Atenciosamente
Shinu
Tags
Grid
Asked by
Claudinei
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or