Rad Grid: Disable activity like insert, edit, update delete when a row is in edit mode

4 posts, 0 answers
  1. K
    K avatar
    1 posts
    Member since:
    Dec 2008

    Posted 08 Dec 2008 Link to this post

    Rad Grid: Disable activity like insert, edit, update delete when a row is in edit mode.

    Following are the scenarios i would like to describe for which the code errors out:
    1) A newly added row is in edit mode. Now when the grid generated CommandItem for adding a new row is clicked, the page errors out.
    Here the user shouldn't have been able to click the add new row link at all. This can be achieved by setting the display of the commandItem. Still the other permutation and combination exists where
    2) Add new row link is clicked and a previously existing row is now clicked for edit. Here two rows are in edit mode. One is for adding a new row and other for editing a row. Now if we click on Insert button the page errors out. Here the user shouldn't have been able to click the edit button since already a row is in Insert mode.

    Concluding, is there any way that we can control the activity for the links on Insert, Update, Edit where they cannot be clicked if any one activity is currently in progress?

    KS
  2. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 08 Dec 2008 Link to this post

    Hello,

    Please test the attached example illustrating how to disable the unwanted modes under certain circumstances.

    Let me know if I missed something.

    Best regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 10 Nov 2009 Link to this post

    Hello,
    I want disable the change page command of radgrid's pager (it's a slider).
    I try to do this by setting the property AllowPaging of the grid to false, but it's not correct because it's change the visualization of the paging structure of the grid. 
    Any suggestion?

    Best regards
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 13 Nov 2009 Link to this post

    Hi archimede,

    Attached to this message, is a small application, which demonstrates how to handle a task very similar to the one which you described.
    Please, take a look at it and let me know how it goes and if any other questions arise.

    Sincerely yours,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top