RadGrid client-side selection throws exception

3 posts, 1 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 24 Sep 2009 Link to this post

    Hello,

    On row click, I was going to programmatically select a row by attaching to the client-side RowClick, and doing:

    sender.get_masterTableView().get_dataItems()[e.get_itemIndexHierarchical()].set_selected(true);

    Since I can  get to the item index via the event, and select it with set_selected.  But this throws an exception, on the line of:

    this._owner._owner._selection._selectRowInternal

    But _selection is null, why is that?

    Thanks.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2009 Link to this post

    Hi Brian,

    Have you set AllowRowSelect property to True?

           <ClientSettings  AllowDragToGroup="true">
                  <Selecting AllowRowSelect="true" />
                  <ClientEvents OnRowClick="OnRowClick" />
            </ClientSettings>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 24 Sep 2009 Link to this post

    I was missing that, thanks.
Back to Top