Unbound GridViewDataColumn with bound GridViewDataColumn

5 posts, 0 answers
  1. Syed Saqib Ali
    Syed Saqib Ali avatar
    4 posts
    Member since:
    Aug 2012

    Posted 27 Feb 2013 Link to this post

    Hi,
    This is my first encounter with Telerik Grid, and i am facing a seemingly simple problem. I have a bound Grid, and I add some GridViewDataColumn which are unbound. Using GridViewDataColumn has it's reasons, as i need to have the option of filtering, grouping and sorting with these.
    I am trying to fill these columns in RowLoaded event, as it seems suitable due to row virtualization, but e.Row only offers bound cells. My 3 unbound columns are not accessible.

    For each row I also need access to the data item, the row is bound to, because using this I fill these columns.

    Is this or similar thing is possible in telerik wpf RadGridView ?                        version 2012, Q2

    Exclude the wrapper based or ViewModel based solutions, those are not possible.
    Thanks and regards
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Feb 2013 Link to this post

    Hello,

    Since the virtualization of RadGridView is turned on by default, it is not recommended to work with the visual elements and their properties. I would recommend you to work with the data elements instead. You can take a look at this article for a reference on UI Virtualization. 

    Why don't you set the DataMemberBinding for the columns?

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Syed Saqib Ali
    Syed Saqib Ali avatar
    4 posts
    Member since:
    Aug 2012

    Posted 27 Feb 2013 Link to this post

    Because the properties don't exist. I am trying these two solutions in parallel, one by implementing
    IDynamicMetaObjectProvider
    , and the other using mix of these two. I use the same property store configured for holding dynamic properties.

    IDynamicMetaObjectProvider solution works like charm but in our application it has a few caveats, which i am looking into. But since task is getting delayed so i thought of using mix of bound and unbound columns.
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Feb 2013 Link to this post

    Hello,

    You could check the "Various Data Sources" WPF Demo which shows different approaches.

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Syed Saqib Ali
    Syed Saqib Ali avatar
    4 posts
    Member since:
    Aug 2012

    Posted 27 Feb 2013 Link to this post

    So in short, i cannot mix both in the same grid :(
    I have tried some demos, but unbound mode is addressed totally differently, and find no such sample where mixed mode is addressed. If i am missing that, please let me know.

    Thanks you so much for the help and regards
Back to Top