row(s) read-only or the cell(s) in one row

6 posts, 0 answers
  1. Lior
    Lior avatar
    28 posts
    Member since:
    Aug 2012

    Posted 01 Aug 2012 Link to this post

    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.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Aug 2012 Link to this post

    Hello,

     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.

  3. Lior
    Lior avatar
    28 posts
    Member since:
    Aug 2012

    Posted 01 Aug 2012 Link to this post

    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. 

  4. Lior
    Lior avatar
    28 posts
    Member since:
    Aug 2012

    Posted 01 Aug 2012 Link to this post

    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
     

  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Aug 2012 Link to this post

    Hello,

    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.

  6. Lior
    Lior avatar
    28 posts
    Member since:
    Aug 2012

    Posted 16 Aug 2012 Link to this post

    Hello,
    I've resolve this issue by add readonlybind from custom control to telerik control.
    thank you 
Back to Top