tag:blogger.com,1999:blog-2494368992571633003.post8909448613987172898..comments2023-03-20T05:21:07.556-07:00Comments on I am Prashant Jain: DoubleClick the column seprator in AdvancedDataGrid and resize columns like ExcelPrashant Jainhttp://www.blogger.com/profile/07377369194623376447noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2494368992571633003.post-8387711560478639592011-03-10T12:40:51.617-08:002011-03-10T12:40:51.617-08:00Hi Prashanth,
I am getting the sam...Hi Prashanth,<br /><br /> I am getting the same problem in my application . Actually I am using itemrenderers for adg. then how exactly can we use this logic? I tried your code but not working for me.babunoreply@blogger.comtag:blogger.com,1999:blog-2494368992571633003.post-61941417853652504962010-07-06T10:15:37.172-07:002010-07-06T10:15:37.172-07:00Asian Kung Fu,
Sorry for the late response.
That ...Asian Kung Fu,<br />Sorry for the late response.<br /><br />That is possible. In fact, I had the code for it. One problem with resizing based on content width is that the itemRenderer instance has to report the right measuredWidth. Some components like TileList do not report the correct measuredWidth.<br /><br />I can point you in the direction for resizing based on content width. ADG has a listItems property. This contains multiple array objects. Each array contains instances of itemRenderer for the entire row. You would iterate through the entire listItem arrays and get the max measuredWidth and that would be the width for each column in the ADG.<br /><br />Hope that explains.Prashant Jainhttps://www.blogger.com/profile/07377369194623376447noreply@blogger.comtag:blogger.com,1999:blog-2494368992571633003.post-36590154500625828562010-05-31T23:01:46.003-07:002010-05-31T23:01:46.003-07:00Hi PJ, love to read your posts.
Your post explores...Hi PJ, love to read your posts.<br />Your post explores topic like no other.<br /><br />Just a little comment on your column resizing capacity.<br />Should the column width determine by the length of cell content?Asian Kung Fuhttps://www.blogger.com/profile/11795566005629003368noreply@blogger.com