Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
CalculateAutoSizeExtent and PerformAutoSize
posted

Hello,

I have a xamdatagrid which contains xamcomboeditors for some fields.

I am trying to resize my grid fields depending to contents by handling dataitem changes like this :

//pseudo

DataItemChanged(sender,propertyname)

{

    var field = grid.layouts[0].fields.find(x=>x.name == propertyname);

    field.PerformAutoSize(FieldAutoSizeOptions.All, FieldAutoSizeScope.ViewableRecords);

}

but it doesn't work properly.Field doesn't extend when comboeditors value changed firstly then it extends although the selected items length of comboeditor is the same as first selected item.I'm controlling field.CalculateAutoSizeExtent(FieldAutoSizeOptions.All, FieldAutoSizeScope.ViewableRecords) and this method returns NaN.

In which cases this method returns NaN?,how this methods work? ,i couldn't find enough documentation.

Thanks.

 

 

Parents Reply Children
No Data