How to make radgrid row readonly.

4 posts, 0 answers
  1. Venkatesh
    Venkatesh avatar
    21 posts
    Member since:
    Jul 2014

    Posted 10 Sep 2014 Link to this post

    Hi,

    Is there is any way for making rad grid row read only.

    Eg:
     
    Group1 >
                   Text1   1   2   3   4   5  6  7

                    Text2  4   5   5   5   6   7   9
    Group2 >
                   Text1   1   2   3   4   5  6  7

                    Text2  4   5   5   5   6   7   9
    Group3 >
                   Text1   1   2   3   4   5  6  7

                    Text2  4   5   5   5   6   7   9

    i need to make rows inside Group3 read only. I am not using any hierarchy, i am using GroupByExpressions for displaying groups.

    Text --- GridBoundColumn
    Other Columns --- GridNumericColumns

    Regards,
    Venkatesh.
  2. Venkatesh
    Venkatesh avatar
    21 posts
    Member since:
    Jul 2014

    Posted 11 Sep 2014 Link to this post

    Here i am using Batch editing with EditType="Cell" OpenEditingEvent="Click" .
  3. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 15 Sep 2014 Link to this post

    Hi Venkatesh,

    You can only enable the Batch editing mode to the levels required, and for the rest you can just keep the default mode:
    <telerik:GridTableView ... EditMode="EditForms">

    Hope this helps.

    Regards,
    Eyup
    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.

     
  4. Venkatesh
    Venkatesh avatar
    21 posts
    Member since:
    Jul 2014

    Posted 23 Sep 2014 in reply to Eyup Link to this post

    Hi Eyup,

    I have achieved this functionality with OnBatchEditOpening. Based on datakeyvalue of selected row i am cancelling the edit. Below is my code which is working fine for me.

    function batchEditOpening(sender, args) {
                            sender.get_masterTableView().get_dataItems();
                            var dataItem = $find(args.get_row().id);
                            var dataKey = dataItem.getDataKeyValue("Name");
                                if (dataKey == "---") {
                                args.set_cancel(true);
                            }
    }

    Thanks for your support.

    Regards,
    Venkatesh.
Back to Top