Giter VIP home page Giter VIP logo

Comments (4)

vconst avatar vconst commented on May 23, 2024

Hi,
 
Thanks for the feedback. During implementation, we tried to reuse most of the DataGrid functionality. So, each new feature in DataGrid will be automatically added to TreeList.

Now, let me comment on your suggestions.

  1. I do not quite understand what you mean by "a property that can be mapped to the data field". Please describe this in more detail. To show a custom tooltip, you can assign a title attribute to each cell in the onCellPrepared event handler. See the example here. Also the TreeList has the onCellHoverChanged event, which can be used for showing dxTooltip with custom content and position.
  2. The capability to disable selection for certain rows is in our to-do list. But we cannot say for sure when it will be implemented. Currently, to hide checkboxes for specific rows, you can use the onCellPrepared event handler.
  3. Expanded rows' state in TreeList is stored in the expandedRowKeys option. We have some important reasons for this. But to accomplish the task, you can set the expandedRowKeys option to TreeList in the onNodesInitialized event handler. See an example.
  4. The use of radio buttons to indicate selection seems strange to me. But you can implement this functionality using the onCellPrepared and the onSelectionChanged event handlers. See the example.
  5. We aren't aware of any problems with the colors contrast. The selection color is the same for all our widgets and very similar to the selection color in bootstrap. You can always change the selection color in the ThemeBuilder tool - https: //js.devexpress.com/ThemeBuilder/. Also, we have plans to implement the focused row functionality in the future. The focused row will be darker than the selected one.
  6. Export for TreeList is in our to-do list. But at present, we cannot provide any precise time frames as to when it will be implemented.

from devextreme.

genachka avatar genachka commented on May 23, 2024

@vconst thanks for your followup.

  1. Using the events such as onCellPrepared for something like that requires extra effort, and processing since it will be triggered for each and every cell. Imagine a list that is a couple thousand rows (which could grow to millions) by about 20 columns. Putting in if statements to check if it's that one field being worked on for a specific column where a title attrib needs to be customized seems excessive. What I was hoping for and other grids I've worked with allow simply to do this (see tooltip callback):
columns: [
                    {caption: 'id', dataField: 'id', visible: false},
                    {caption: 'source', dataField: 'source', visible: false},
                    {caption: 'Employee ID', datafield: 'employeeID', tooltip: function(e) {
                          return 'Employee Name: ' + e.employeeFirstName + ' ' + e.employeeLastName;
                       }
                    },
                    {caption: 'File Name', dataField: 'fileNamePath', width: '25%', encodeHtml: false, tooltip: function(e) {
                          return 'Created: ' + e.fileNameCreated + ', Modified: ' + e.fileNameModified;
                       }
                    }
]
  1. Looking forward to that feature eagerly. Using onCellPrepared for now as suggested (thanks).
  2. Again, same as 1 above, with lots of rows, seems inefficient using the event handlers and having potentially lots of if / switch statements. Was hoping some something like this (see expandRow):
columns: [
                    {caption: 'id', dataField: 'id', visible: false},
                    {caption: 'source', dataField: 'source', visible: false},
                    {caption: 'Employee ID', datafield: 'employeeID', expandRow: true},
                    {caption: 'File Name', dataField: 'fileNamePath', width: '25%', encodeHtml: false}
]
  1. I suppose that isn't too common, thanks for the workaround.
  2. I'll give that a shot, thanks.
  3. Eagerly await this one too.

from devextreme.

stale avatar stale commented on May 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from devextreme.

onebalaban avatar onebalaban commented on May 23, 2024

Hello,

Your scenario is quite specific and can be covered by the workaround we suggested earlier. We didn't register similar requests for the past two years. Thus, we decided not to implement this functionality for now.

Regards,

Romeo

from devextreme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.