Disable rows and cells in SelectionModel

  1. #1

    Disable rows and cells in SelectionModel

    Hello,

    Just wondering how one would go about disallowing a row in a GridPanel from being selected using the SelectionModel whether is be a SingleSelect or multiple rows:

    For instance, out of 20 rows I would like 2 of the rows to be locked from being selected.

    Cheers,
    Timothy
  2. #2

    RE: Disable rows and cells in SelectionModel



    Hi Timothy,

    At the moment there is no built in functionality within the Toolkit to handle disabling rows or individual cells.

    This would be a nice (i.e. "required") feature in my mind as well, so we'll make it a priority to implement. but... it might not be a quick and easy thing to do. I'll update this thread when the feature is ready to test.
    Geoffrey McGill
    Founder
  3. #3

    RE: Disable rows and cells in SelectionModel



    Moving to "Feature Requests" forum.
    Geoffrey McGill
    Founder
  4. #4

    RE: Disable rows and cells in SelectionModel

    Thanks Geoffrey,

    Would be nice if on the SelectionModel we could have a property that can evaluate data for each record to be true or false for selecting the row.

    For instance:

        <SelectionModel>
            <ext:RowSelectionModel ID="SearchResultSelection" runat="server" SingleSelect="True" AllowSelectHandler="return record.data.AllowSelect == 'Yes';" />
        </SelectionModel>
    Sorry about my horrible naming of the property -- but you get the idea ;)

    Cheers,
    Timothy Grant Vogelsang
  5. #5

    RE: Disable rows and cells in SelectionModel

    Anything with this one? Would be really helpful :)

    Cheers,
    Timothy
  6. #6

    RE: Disable rows and cells in SelectionModel

    Hi Timothy,

    we don't have this functionality yet.

    For now I can suggest to you to handle 'beforerowselect' event and return false if the row can't be selected


  7. #7

    RE: Disable rows and cells in SelectionModel

    Great recommendation! I'll use that for the time being.

    Cheers, vlad!
    Timothy

Similar Threads

  1. Replies: 9
    Last Post: May 09, 2012, 9:22 AM
  2. Merge GridPanel Cells
    By Dominik in forum 2.x Help
    Replies: 1
    Last Post: Mar 14, 2012, 1:55 PM
  3. [CLOSED] GridPanel.Rows.Changing Background Color of Rows
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 01, 2012, 5:18 PM
  4. Disable rows in the gridpanel
    By ruben in forum 1.x Help
    Replies: 0
    Last Post: Jul 09, 2011, 1:39 AM
  5. [CLOSED] Tooltips Example for GridPanel Rows / Cells Tookit Version 0.8
    By niceguymattx in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 21, 2010, 3:17 AM

Posting Permissions