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

[Solved] Certain grid functions only seem to be updatable at grid creation time

3 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 17 Sep 2009, 11:14 AM
I am able to set these properties in the RadGridView but only when I create the grid not at runtime in response to a user wishing to changing settings :

<grid:RadGridView x:Name="m_grid"
            IsFilteringAllowed="{Binding ShowFilter}"
            RowIndicatorVisibility="{Binding RowIndicatorVisibility, Converter={StaticResource visibilityValueConverter}}"
            ShowGroupPanel="{Binding ShowGroupPanel}"
            ShowColumnFooters="{Binding ShowColumnFooters}"
            ShowGroupFooters="{Binding ShowGroupFooters}"
            FrozenColumnCount="{Binding FrozenColumnCount}"
        />

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 18 Sep 2009, 09:43 AM
Hi Alex,

Can you try to call the grid's Rebind method after one of those changes at run-time, since they are complex and the grid will need to repopulate. Please, let us know if this does not solve the problem.

Best wishes,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alex
Top achievements
Rank 1
answered on 21 Sep 2009, 09:59 AM
Thanks - this seems to have helped with the RowIndicatorVisibility but it has not helped in rebinding the value for IsFilteringAllowedShowGroupFooters or ShowGroupFooters.
0
Vlad
Telerik team
answered on 24 Sep 2009, 01:57 PM
Hello Alex,

I've tried these and indeed IsFilteringAllowed does not work correctly however ShowGroupFooters worked normally on my end. Here is an example:

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel>
            <CheckBox x:Name="CheckBox1" Content="ShowGroupFooters" />
            <CheckBox x:Name="CheckBox2" Content="IsFilteringAllowed" />
        </StackPanel>
        <telerik:RadGridView Name="RadGridView1" AutoExpandGroups="True" Grid.Row="1"
                             ShowGroupFooters="{Binding IsChecked, ElementName=CheckBox1}"
                             IsFilteringAllowed="{Binding IsChecked, ElementName=CheckBox2}">
            <telerik:RadGridView.GroupDescriptors>
                <telerikData:GroupDescriptor Member="Name" />
            </telerik:RadGridView.GroupDescriptors>
        </telerik:RadGridView>
    </Grid>

We will do our best to fix IsFilteringAllowed for our next internal build.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Alex
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or