Serg Posted June 25, 2019 Share Posted June 25, 2019 Добрый день! Возможно ли очистить SelectRows программно? Спасибо! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 25, 2019 Share Posted June 25, 2019 Здравствуйте! 7 minutes ago, Serg said: Возможно ли очистить SelectRows программно? UniDBGrid1.JSInterface.JSCall('getSelectionModel().deselectAll', []); 1 Quote Link to comment Share on other sites More sharing options...
Serg Posted June 25, 2019 Author Share Posted June 25, 2019 Большое спасибо! А возможно ли включить выбор строки программно? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 25, 2019 Share Posted June 25, 2019 3 minutes ago, Serg said: А возможно ли включить выбор строки программно? Один из возможных способов: with UniDBGrid1 do begin JSInterface.JSCall('getSelectionModel().select', [5, true]); end; Здесь - true ("multiselect") 1 Quote Link to comment Share on other sites More sharing options...
Serg Posted June 25, 2019 Author Share Posted June 25, 2019 Большое спасибо!!!!!!!!!!!!!!!!!!!! И еще пожалуйста : Можно ли убрать CheckBox который отмечает все строки? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 25, 2019 Share Posted June 25, 2019 18 minutes ago, Serg said: И еще пожалуйста : Можно ли убрать CheckBox который отмечает все строки? Есть конфигурация - showHeaderCheckbox. Я проанализирую Quote Link to comment Share on other sites More sharing options...
Serg Posted June 25, 2019 Author Share Posted June 25, 2019 Спасибо Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 25, 2019 Share Posted June 25, 2019 26 minutes ago, Sherzod said: 47 minutes ago, Serg said: И еще пожалуйста : Можно ли убрать CheckBox который отмечает все строки? Есть конфигурация - showHeaderCheckbox. Я проанализирую function beforerender(sender, eOpts) { var me=sender.checkboxModel; if (me) { me.showHeaderCheckbox=false; } } Quote Link to comment Share on other sites More sharing options...
Serg Posted June 25, 2019 Author Share Posted June 25, 2019 Спасибо!!!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
Serg Posted February 28, 2020 Author Share Posted February 28, 2020 with UniDBGrid1 do begin JSInterface.JSCall('getSelectionModel().select', [5, true]); end; Не работает Quote Link to comment Share on other sites More sharing options...
Serg Posted February 28, 2020 Author Share Posted February 28, 2020 А как можно включить текущую строку программно? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 28, 2020 Share Posted February 28, 2020 30 minutes ago, Serg said: with UniDBGrid1 do begin JSInterface.JSCall('getSelectionModel().select', [5, true]); end; Не работает Здравствуйте, Можете уточнить, в какой момент Вы используете этот код...?! Quote Link to comment Share on other sites More sharing options...
Serg Posted February 28, 2020 Author Share Posted February 28, 2020 Здравствуйте! Когда таблица загружена. Нажимаю кнопку Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 28, 2020 Share Posted February 28, 2020 4 minutes ago, Serg said: Когда таблица загружена. Нажимаю кнопку Каковы настройки Вашего grid'а, поскольку вышеуказанный код работает для меня. Quote Link to comment Share on other sites More sharing options...
Serg Posted February 28, 2020 Author Share Posted February 28, 2020 Quote Link to comment Share on other sites More sharing options...
Serg Posted February 28, 2020 Author Share Posted February 28, 2020 Еще интереснее - отмечается но не показывается ! Про запросе DataSource.DataSet.GotoBookmark(SelectedRows.Items); выбор есть Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 28, 2020 Share Posted February 28, 2020 4 minutes ago, Serg said: Еще интереснее - отмечается но не показывается ! Про запросе DataSource.DataSet.GotoBookmark(SelectedRows.Items); выбор есть Извините, можете ли Вы сделать простой тестовый случай!? Quote Link to comment Share on other sites More sharing options...
Serg Posted February 28, 2020 Author Share Posted February 28, 2020 Хорошо 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.