RadGridView Beta 2

6 posts, 2 answers
  1. Will
    Will avatar
    27 posts
    Member since:
    Jun 2008

    Posted 02 Jul 2008 Link to this post

    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
  2. Answer
    Atanas
    Admin
    Atanas avatar
    54 posts

    Posted 03 Jul 2008 Link to this post

    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
  3. Will
    Will avatar
    27 posts
    Member since:
    Jun 2008

    Posted 03 Jul 2008 Link to this post

    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
  4. Answer
    Atanas
    Admin
    Atanas avatar
    54 posts

    Posted 07 Jul 2008 Link to this post

    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
  5. Will
    Will avatar
    27 posts
    Member since:
    Jun 2008

    Posted 07 Jul 2008 Link to this post

    Thanks Atanas,

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

    Will
  6. Hristo Deshev
    Admin
    Hristo Deshev avatar
    559 posts

    Posted 08 Jul 2008 Link to this post

    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
Back to Top