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

Getting ClientID for Normal GridBoundColumn

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James Fallaw
Top achievements
Rank 1
James Fallaw asked on 24 Aug 2011, 04:54 PM
I have seen many postings explaining how to get the client ID for grid columns with embedded textboxes (or checkboxes) which can then be used in client-side script.  For example:  http://www.telerik.com/community/forums/aspnet/grid/multiplication-of-two-gridboundcolumn-in-editmode.aspx

What I need is to get the ClientID for a "normal" readonly GridBoundColumn such as is created when a grid is not in edit mode.  This is being used for validation purposes and the column is never edited, so putting it in a textbox would be bad UI.  I can't easly post working code as it is extremely dynamic and database driven.  Is this possible?

Thanks,
James

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 29 Aug 2011, 03:13 PM
Hi James Fallaw,

If I understand right what you want to do is to access MasterTableView client side and call its getCellByColumnUniqueName function and to pass it the desired row and the name of the column which you want to use for validation. After that you take the innerHtml which returns a string. More information about this function, you could find here.


Best wishes,
Andrey
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
James Fallaw
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or