This question is locked. New answers and comments are not allowed.
Hi,
We've a custom bind class extends from RadGridView, we face an issue that we could not set some row read-only in a table, but others are NOT, we only find properties set read-only in column that all rows and under it will be read-only
is there work around that we could set row(s) to readonly not use column read-only. or cell(s) in one row is readonly.
Btw ,the readonly cell will be written when child row is being updated.
Thanks in advance.
We've a custom bind class extends from RadGridView, we face an issue that we could not set some row read-only in a table, but others are NOT, we only find properties set read-only in column that all rows and under it will be read-only
is there work around that we could set row(s) to readonly not use column read-only. or cell(s) in one row is readonly.
Btw ,the readonly cell will be written when child row is being updated.
Thanks in advance.
5 Answers, 1 is accepted
0
Hello,
Didie
the Telerik team
Please check this forum thread for more info on the matter.
Kind regards,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Lior
Top achievements
Rank 1
answered on 01 Aug 2012, 06:24 AM
Hi,
Thank you for quick respone, there is a problem that
We implmented the custom datarow class and using MVVM in our project, in xaml there is only a custom control to dynamic binding for column,
<controls:BindableRadDataGrid Grid.Row="1" Margin="5"
Name="childRadGridView" DataSource="{Binding ChildTable, Mode=TwoWay}"
/>
should we add IsReadOnlyBinding to this custom control. and how we pass the parameter from the custom datarow class to it.
the attached file is red is readonly in this row, green is editable.
thanks in advance.
Thank you for quick respone, there is a problem that
We implmented the custom datarow class and using MVVM in our project, in xaml there is only a custom control to dynamic binding for column,
<controls:BindableRadDataGrid Grid.Row="1" Margin="5"
Name="childRadGridView" DataSource="{Binding ChildTable, Mode=TwoWay}"
/>
should we add IsReadOnlyBinding to this custom control. and how we pass the parameter from the custom datarow class to it.
the attached file is red is readonly in this row, green is editable.
thanks in advance.
0
Lior
Top achievements
Rank 1
answered on 01 Aug 2012, 07:38 AM
how could we pass parameters to the converter since the table was dynamic created.
create column:
var newColumn = new DataColumn(name, typeof(decimal));
newColumn.ReadOnly = !IsAuthenticated;
table.Columns.Add(newColumn);
create table :
complex.ChildTable = GenerateDataTable(person)
using in xaml:
<controls:BindableRadDataGrid Grid.Row="1" Margin="5"
Name="a" DataSource="{Binding ChildTable, Mode=TwoWay}"
/>
BindableRadDataGrid is a customclass for rendering in page.
is there work around for add isreadonlybingding for this.
thanks
create column:
var newColumn = new DataColumn(name, typeof(decimal));
newColumn.ReadOnly = !IsAuthenticated;
table.Columns.Add(newColumn);
create table :
complex.ChildTable = GenerateDataTable(person)
using in xaml:
<controls:BindableRadDataGrid Grid.Row="1" Margin="5"
Name="a" DataSource="{Binding ChildTable, Mode=TwoWay}"
/>
BindableRadDataGrid is a customclass for rendering in page.
is there work around for add isreadonlybingding for this.
thanks
0
Hello,
Didie
the Telerik team
You could add a new field "IsReadOnly" for the custom DataRow. May I ask you what is the criteria to have a row (all cells on a row) readonly?
Kind regards,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Lior
Top achievements
Rank 1
answered on 16 Aug 2012, 09:35 AM
Hello,
I've resolve this issue by add readonlybind from custom control to telerik control.
thank you
I've resolve this issue by add readonlybind from custom control to telerik control.
thank you