How can I select all rows in the C1GridView using a command button

Posted by: srivi31 on 10 September 2017, 11:33 am EST

  • Posted 10 September 2017, 11:33 am EST

    Hi, I need to select all rows in the  C1GridView using a command button outside C1GridView

  • Replied 10 September 2017, 11:33 am EST

    Hello,


    You should be able to use the following to handle this:


        <script type="text/javascript" >
            function Select() {
                var grid = $find("C1GridView1");
                grid.get_selection().selectAll();
            }
        </script>


    This is used with a client-side button click event:


    <input id="Button1" type="button" value="button" runat="server" onclick="Select()" />


    Thanks and I hope this helps.


    -Raleigh


     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels