RadDataform changes from edit mode to read only mode upon scroll move

5 posts, 0 answers
  1. Vaishali
    Vaishali avatar
    5 posts
    Member since:
    Dec 2012

    Posted 15 May 2013 Link to this post

    I have a radGridview and a radDataform in its details.Raddataform is quite large so that when radgridview scroll moves down then raddataform changes its mode from edit to readonly.Initially, the Raddataform is in edit mode.
    Why is this happening , i do not know.Please suggest something on this issue.
    Thanking You in advance.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 17 May 2013 Link to this post

    Hello Vaishali,

    Could you take a look at the sample attached and let me know how I can update it so that it reproduces the behavior you experience on your side ?
    Thanks in advance. 

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 17 May 2013 Link to this post

    Hi Vaishali,

    Actually, there is one case where similar behavior can be reproduced - when you scroll down so that the whole data form is not in the view port (as you described in your other ticket on the same topic - 693371). However, in this case it would be expected since each row that has gone out of the view port and is recycled by the grid (as every other virtualized control would do). Consequently, when you scroll back to that row, its parts - cells, borders, row details elements are recreated. And as the default behavior of RadDataForm is to be in read-only mode, you see it that way.

    Greetings,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Vaishali
    Vaishali avatar
    5 posts
    Member since:
    Dec 2012

    Posted 19 May 2013 Link to this post

    Yes, you are correct.Due to this recreation of view, it is changing it's edit mode to default readonly mode.
    Anyways, I had found one solution for this by setting enablerowvirtualization  and enablecolumnvirtualization to false so that it will not recreate each row.However, application hangs/crashes(no records are displayed).
    Is there any other solution for this.
  6. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 20 May 2013 Link to this post

    Hi Vaishali,

    Generally, turning off the virtualization is not suggested as it will lead to degraded performance if you have a lot of items to load. What might work in this case is to find the data form once you scroll up and call its BeginEdit() method.  

    Greetings,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner