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

Can't call jquery to IDs or Classes within Grid

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 28 Feb 2013, 07:20 PM
I need to be able to click a link within the KendoUI grid and have it populate and <input> fields value.  When I set up my jquery (below) everything works as planned, however, if I assign an ID to a link within the grid and try the same thing nothing happens upon clicking.  If there is a solution please let me know.  Thanks.

       $("#grid").click(function (){
      $("#CaseNumberValue").val('TSCFP029343');});

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 01 Mar 2013, 12:15 PM
Hello Brad,

Your scenario is a bit unclear. Could you please provide code snippets that show your Grid and DataSource configuration?

As a general information, the Grid rows are not rendered immediately after the initialization of the widget, but when the data is received and loaded in the DataSource. If you want to select an element which is part of the Grid rows please use the dataBound event.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Brad
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or