This is a migrated thread and some comments may be shown as answers.

Get column values on Multiselect

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicolas
Top achievements
Rank 1
Nicolas asked on 28 Aug 2012, 10:38 AM
I have a Radgrid with multiselect , but i cant seems to find out how to get the list of column values that are selected.
Can someone help me out ? Ill attached my code.
                    <telerik:RadGrid ID="ClientenGrid" runat="server" AllowMultiRowSelection="True"
                        CellSpacing="0" GridLines="None"
                        OnNeedDataSource="ClientenGrid_NeedDataSource"
                         AllowPaging="True" PageSize="7" DataMember="ID">
                         
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                            <ClientEvents OnCellSelecting="ClientenGrid_OnCellSelecting" />
                        </ClientSettings>
                         
                        <MasterTableView DataMember="ID">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                                Visible="True">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                                Visible="True">
                            </ExpandCollapseColumn>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                    <br/>
                    <table style="float: left;">
                        <tr>
                            <td>
                                <asp:Label ID="AantalClienten" runat="server" Text="Aantal cliĆ«nten geslectecteerd: "></asp:Label><asp:Label
                                    ID="Aantal" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <table style="float: right;">
                        <tr>
                            <td>
                                <dx:ASPxButton ID="OKBtn" runat="server" Text="Ok" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {
    ClientenPicker.Hide();
}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="CancelBtn" runat="server" Text="Cancel" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {
    ClientenPicker.Hide();
}" />
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Aug 2012, 12:26 PM
Hello Nicolas,

I have created a sample RadGrid web site to demonstrate how you could access the selected items' column values both on server and on client-side. Please check out the attached application and let me know if it helps you.

Regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Nicolas
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or