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

select first row ?

3 Answers 1326 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gert
Top achievements
Rank 1
Gert asked on 02 Feb 2015, 03:12 PM
Hello Everyone,

I can succesfully add a new row by following code :
$("#grid").data("kendoGrid").dataSource.insert(0, {
    id: newId,
    
    titel: newTitel,
    
    creatiedatum: new Date()
});

Now I want to select this new added row programmatically.
Because I add it above, selecting the first record would do the trick.

1) How do I select the first record in the grid?
2) How do I select a new inserted row in the datasource ?

1 answer would be sufficient :)

thx,
Gert

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 02 Feb 2015, 03:28 PM

Hello Gert,

Please check the following example and let me know if it helps:

http://dojo.telerik.com/@Kiril/Ocace

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Gert
Top achievements
Rank 1
answered on 03 Feb 2015, 08:23 AM
Perfect !

thx,
Gert
0
Kiril Nikolov
Telerik team
answered on 03 Feb 2015, 09:23 AM

Hello Gert,

Happy to help!

In case you have any further questions, please do not hesitate to contact us.

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