This is a migrated thread and some comments may be shown as answers.

How to make radgrid row readonly.

3 Answers 209 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Venkatesh
Top achievements
Rank 1
Venkatesh asked on 10 Sep 2014, 02:45 PM
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.

3 Answers, 1 is accepted

Sort by
0
Venkatesh
Top achievements
Rank 1
answered on 11 Sep 2014, 06:35 AM
Here i am using Batch editing with EditType="Cell" OpenEditingEvent="Click" .
0
Eyup
Telerik team
answered on 15 Sep 2014, 02:41 PM
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.

 
0
Venkatesh
Top achievements
Rank 1
answered on 23 Sep 2014, 07:17 AM
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.
Tags
General Discussions
Asked by
Venkatesh
Top achievements
Rank 1
Answers by
Venkatesh
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or