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

ClientIDRowSuffix property for RadGrid

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 26 Apr 2012, 12:55 PM
Hi All

I'm working on RadGrid with bounding TextBox for each rows of column.

I need to get the client id for Textbox, but i'm not getting the 'ClientIDRowSuffix' property to set the ID to Textbox.

Can you tell me why telerik Radgrid not supporting the 'ClientIDRowSuffix' property.
 
Please help me on this

Thanks


Nitin

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 30 Apr 2012, 02:27 PM
Nitin:

You can access your textboxes for each row of the RadGrid using the following JavaScript on the client-side:

function getTextBox() 
        var grid = $find("<%= grdItemData.ClientID %>");
        var masterTable = grid.get_masterTableView(); 
        for (var i = 0; i < masterTable.get_dataItems().length; i++) 
        
            // to access the textbox in each row
           var txtBox = masterTable.get_dataItems()[i].findElement("txtCompanyName");
             // set alert
        
 }

I hope this helps!
Tags
Grid
Asked by
Nitin
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or