Partially Editable GridView.

4 posts, 0 answers
  1. Anand
    Anand avatar
    12 posts
    Member since:
    Apr 2014

    Posted 14 Oct 2014 Link to this post

    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.
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 15 Oct 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Anand
    Anand avatar
    12 posts
    Member since:
    Apr 2014

    Posted 15 Oct 2014 in reply to Boris Link to this post

    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 
     
  5. Boris
    Admin
    Boris avatar
    276 posts

    Posted 16 Oct 2014 Link to this post

    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.

     
Back to Top