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

RadGridView Beta 2

5 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 02 Jul 2008, 12:51 PM
Hi Guys - congratulations on Beta 2 - it's a big step forward and seems to fix most of the issues we encountered in the first release!

Just a couple of issues that have come up for us with the new release:

 1. Is it possible to turn off the filtering feature?
 2. The autofit column algorithm does not include the header text (we would expect it to)
 3. When adding field descriptions dynamically and refreshing the data, we get:

{System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.UI.DistinctFilterControl.PopulateDistinctValues()
   at Telerik.Windows.Controls.UI.DistinctFilterControl.<DistinctFilterControl_Loaded>b__0()}

Any help with these would be much appreciated,

Will Holley

5 Answers, 1 is accepted

Sort by
0
Accepted
Atanas
Telerik team
answered on 03 Jul 2008, 10:20 AM
Hi Will,

1. To turn the filtering off  you have to use the the boolean IsFilteringAllowed property of RadGridView.
2. About the "autofit column algorithm" - we are currently working on the matter.
3. Dynamically adding field descriptors is not supported at the moment. We have this in our To-Do list and we will consider the feature for the forthcoming versions of the control.

Kind regards,
Atanas
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Will
Top achievements
Rank 1
answered on 03 Jul 2008, 12:47 PM
Atanas,

Thanks for the swift reply.

1. This works great.
2. Good to hear - looking forward to the next release.
3. This actually seems to work most of the time - if you add the field definitions but set them to be hidden and then show them once the data has loaded it works but if they are set to be visible before the data is loaded it throws an exception.

Will
0
Accepted
Atanas
Telerik team
answered on 07 Jul 2008, 10:52 AM
Hello Will,


I managed to add a column dynamically on button click for example, but it was quite tricky. This is the code:

    object source = this.radGridView.ItemsSource;

    GridViewDataColumn id = new GridViewDataColumn();

    id.HeaderText =

"Customer ID";

    id.UniqueName =

"CustomerID";

    id.IsVisible =

false;

    this.radGridView.Columns.Add(id);

    this.radGridView.ItemsSource = null;

    this.radGridView.ItemsSource = source;

    id.IsVisible =

true;


I have to say that, at the moment, we do not recommend adding and removing columns at runtime, the best way would be to add all columns and hide the unneeded ones using the IsVisible property of the column.



Regards,
Atanas
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Will
Top achievements
Rank 1
answered on 07 Jul 2008, 11:51 AM
Thanks Atanas,

We're happy to accept this as unsupported for now - maybe something to consider for future releases?

Will
0
Hristo Deshev
Telerik team
answered on 08 Jul 2008, 03:42 PM
Hello Will,

I guess we can add this feature after we ship the 1.0 release. The date is getting dangerously close for us to add features that would be that disruptive to the code base.

Regards,
Hristo Deshev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Will
Top achievements
Rank 1
Answers by
Atanas
Telerik team
Will
Top achievements
Rank 1
Hristo Deshev
Telerik team
Share this question
or