Client side allow XOR row select

3 posts, 0 answers
  1. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 04 Mar 2009 Link to this post

    Hi,

    I'm trying to write a client side script, that would disable the user from selecting masterTableView elements and DetailTable elements simultaneously.

    The multiple or single selected rows should be all from master or from detail table view (XOR)

    is this possible?

    Thanx in advance,
    Lp, Luka
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Mar 2009 Link to this post

    Hi Luka,

    I have found the following help article which explains how to achieve conditional row selection in a hierarchical Grid. Go through the link and see if it helps.
    Conditional row select in hierarchy

    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 05 Mar 2009 Link to this post

    Hi Shinu,

    Thanks for the reply...it helped a little, but at the end I studied the Client-side API Reference for RadGrid.

    I came up with the following solution:

     <script type="text/javascript">
            function RowSelecting(sender, eventArgs) {
                var skupineGrid = $find("<%= skupineGrid.ClientID %>");

                if (eventArgs.get_tableView().get_name() == "Skupine")
                    for(i = 0; i < skupineGrid.get_detailTables().length; i++)
                        skupineGrid.get_detailTables()[i].clearSelectedItems();
                
                else
                    skupineGrid.get_masterTableView().clearSelectedItems();
            }
    </script>


    Maybe it will help someone.

    LP, Luka




Back to Top