I am using a GridDataControl to be displayed inside a popup. First time when this is displayed it has some rows, if second time there are more rows some scroll appears, if they are less rows then empty space is there. How to resize the height of the control seeing the fact the the row number depends on the user interactions ?
FPFarjana Parveen Ayubb Syncfusion Team November 18, 2014 05:31 AM UTC
Sorry about the delay caused.
We have analyzed your query. You can achieve your
requirement by setting the Height and Width of the Popup as Auto. At the time
of loading, the height and width of the popup will be set based on the Grid
height and width. If you add/ remove records at run time, you need to use
InvalidateMeasure method to adjust the popup width and height based on grid.
Please refer the below code snippet and sample in
the following location: