Is there a way to set a fixed column size in Dojo DataGrid, and not allow it to be resized by the user? Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The cells defined within the grid’s
structuresupport a booleannoresizeproperty. Setting this totruewill disable resizing on that particular cell.You might want to do something about overriding the default CSS though – it appears to use a rather noticeable cursor when hovering over non-resizable cell boundaries.
You can also set a specific width of a column in the
structureusing thewidthproperty on a particular cell.Example: http://jsfiddle.net/kfranqueiro/qNfC9/