ShowInsertRow gone...

2 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 17 Mar 2015 Link to this post


    in the latest version you removed the ShowInsertRow

    >>Removed obsoleted property ShowInsertRow of RadGridView. Property NewRowPosition should be used instead.

    So we should use NewRowPosition instead.

    ATM we have ShowInsertRow="{Binding UserMayInsertRows}" which works fine.
    And yes I could write a converter True==Insertrowpositon.Top -- False==I...None to help me out of it.

    But - how (without a lot of effort) to position the InsertRow as I need it?
    A multivalue Converter or...?

    So what I search for is an easy way to have Grids - some with the InsertRow on Top - some with it at the bottom...
    ...and bind the visibility of the InsertRow to a boolean.

  2. Stefan X1
    Stefan X1 avatar
    486 posts

    Posted 20 Mar 2015 Link to this post

    Hi Manfred,

    If you bind NewRowPosition property to a boolean one you will have to choose two of the three possible values for it. The way to achieve this is by using a Converter. Even a MultiValueConverter, as you suggested, cannot make any difference since the boolean property you want to bind NewRowPosition to provides only two values. A possible solution for this scenario is to implement two Converters. For example, the first one will return "None" value for "false" and "Bottom" for "true". Respectively the second one will return again "None" for "false" and "Top" for "true".

    Let me know how this approach works for you.

    Best Regards,

    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.

  3. DevCraft banner
Back to Top