This is a migrated thread and some comments may be shown as answers.

Editor.Width not functioning

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 21 Feb 2015, 01:39 AM
I have written an eventhandler which is getting called on FieldFilterEditorCreated.     Depending on which column the type of the e.Editor changes.   But regardless, when I set a value in the width property of this editor it has no effect.    It comes is as "NaN".    I try to set the value.   It doesn't have any effect.   Even if I set it to a huge number, the size of the filter editor box remains unchanged.

Incidentally I see the FieldFilterEditorCreated event getting called TWICE when I click the funnel.    Both times on entry the value in e.Editor.Width is "Nan" and when I set it both times...still no change.

2 Answers, 1 is accepted

Sort by
0
Pat
Top achievements
Rank 1
answered on 23 Feb 2015, 08:12 PM
I was able to resolve my issue by putting the following into the resourcedictionary section of the xaml for the base class:

<ResourceDictionary 
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" >
<Style TargetType="telerik:FilteringControl">
           <Setter Property="Width" Value="Auto"/>
</Style>
0
Yoan
Telerik team
answered on 24 Feb 2015, 12:10 PM
Hello Pat,

I am glad to hear that you had resolved the problem by yourself. If you need further assistance on this, do not hesitate to contact us again.

Regards,
Yoan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Pat
Top achievements
Rank 1
Answers by
Pat
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or