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

ShowInsertRow gone...

1 Answer 329 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 17 Mar 2015, 11:00 AM
Hi,

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.

Manfred

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 20 Mar 2015, 10:12 AM
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,
Stefan
Telerik
 

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.

 
Tags
GridView
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or