Im programmatically changing the dataSource of the grid by inserting an element into the list. Then I Rebind on RadGrid. I have the id of a newly inserted object. Then I would like to select this row in the grid. How can I do this from code?
thanks for the help
You must set the ID as DataKeyNames="yourID" for your grid. Then you can get it in the code behind and set it like this:
DataKeyNames="yourID"
GridDataItem gdiItem = RarGrid1.MasterTableView.FindItemByKeyValue("yourID", yourIDValue); gdiItem.Selected = true;
Source: https://habr.com/ru/post/1386654/More articles:How do you decode the output of Perl Benchmark :: timestr? - benchmarkingAlign ASP.Net labels and text fields with CSS? - cssHow to implement multi-threaded stream in jQuery - jqueryto remove hibernate from pojo's object? - serializationSQLAlchemy TypeDecorator not working - xmlSearch for records in RadGrid Telerik paginated - asp.netDisabling a process started with C # - c #capybara-webkit - rails session is not saved / established - ruby-on-railsCSS div with display: cell table and window size: mismatch between width and width of the border - css3How likely is it to see Vala's web structure? - web-frameworksAll Articles