Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
plain grid, client events
posted

I need sample to handle the following  scenarios :

ASP.NET WEBFORM Grid

Three columns: 2 columns are bound check box field and  one column is  bound string field with text editor. One check box column is read only.

On the client side events should handle the following :

1. On grid initializing: when both check boxes are the same  the text field has gray background and disabled(not editable), otherwise it is editable and has white background.

2. When read/write check box changes then  if both check boxes in the same row the same – text field in that row cleared and gray and disabled, if check boxes in the same row different – the text field background became white and text could be entered

Please provide simple running sample in 14.1 

Parents
  • 8920
    Offline posted

    Actually I do not need the whole grid and all related to disable / enable .. what I need is css for background and foreground of the cell, i.e.

    I am in the event and have the following references to the cell : 

    var comm = row.get_cellByColumnKey("Comment");

    and also for the editor :

    var behaviors = grid.get_behaviors();
    var editingCore = behaviors.get_editingCore();
    var editingBehaviors = editingCore.get_behaviors();
    var cellEditingBehavior = editingBehaviors.get_cellEditing();
    var commEditingColumnSetting = cellEditingBehavior.get_columnSettingFromKey("Comment");

    At this point how to change background color of the cell comm  and/or corresponding editor commEditingColumnSetting

    please show css class with selectors and where to assign it so the background/foreground of one cell in a row will change.

    Thanks 

Reply Children