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

Partially Editable GridView.

3 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 14 Oct 2014, 05:03 PM
I have a requirement for few columns can be edited by user and few are read only. Is there any way to achieve this for RadGridView. More On right Click I need the Context menu too.

3 Answers, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 15 Oct 2014, 08:40 AM
Hello Anand,

In order to set some columns as read only, you can either set the IsReadOnly property of each desired column to "False" or bind to the IsReadOnlyBinding property of the desired column. For more information about that you can check the Read Only Rows and Cells documentation article.

As for your your second issue, you can check the Use a RadContextMenu in MVVM documentation article and our HeaderContextMenu,RowContextMenu online demos and our RadContextMenuAndRadGridViewMVVM sdk example. Although GitHub is a very well-known platform we saw a better and easier approach for reviewing our examples by developing our SDK Samples Browser.

I hope this helps.

Regards,
Boris Penev
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
Anand
Top achievements
Rank 1
answered on 15 Oct 2014, 04:23 PM
http://www.telerik.com/help/silverlight/gridview-how-to-use-radcontextmenu-mvvm.html

I tried this but In 1 Column I have stack Panel which contains few Buttons for Edit So sebmenu for column show and hide giving me issue. If I don't use this Sub Menu it is working. How I can resolve it. 


More My requirement is :
 I need to have few Menu Items which will Add 1 or few column on Right to this column  & Show data from From Different table. Like You can say Column Data comparision from Historical data.

Same I need to have different ContextMenu which will show Historical data of Selected Row .

How can I show different ContextMenu for Rows & Header?
Do I need to Pull data 1 time Then Only I can show column Historical Data like default functionality? I means to say Do I need to create View for My Data & then Map it in Entity Framework & pull it once. Or is there any way where I can send a request for this data and show comparision data of Columns?

Need some advice to work on this.
Waiting for kind reply
Thank you 
 
0
Boris
Telerik team
answered on 16 Oct 2014, 07:36 AM
Hi Anand,

I am not entirely sure what you mean by "I have stack Panel which contains few Buttons for Edit So submenu for column show and hide giving me issue" does your cell data contain StackPanel with a few buttons or you have a custom header?

In order to add columns dynamically to the Columns collection of RadGridView, you can manually define them in code-behind. For more information about that, you can check the Manual Columns Definition section in the Defining Columns documentation article. In addition you will need to bind that column to a property from your business object that contains the data you need to display.

As for showing different ContextMenus for Rows and Headers, you can combine the HeaderContextMenu and RowContextMenu online demos.


Regards,
Boris Penev
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.

 
Tags
GridView
Asked by
Anand
Top achievements
Rank 1
Answers by
Boris
Telerik team
Anand
Top achievements
Rank 1
Share this question
or