Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
66 views

hi, im wondering if someone can help me out, im making a form where you can add and edit.  the idea is to use the grid to find the desired record to edit and select it on the same form where you create forms in the first place.  i can pass the values to the textboxes just fine but no the boolean values for the check boxes.  anybody got any idea on how i can do this? 

ill post down here what i did for the textboxes.

Panel1.Visible = True
        Dim row As GridViewRow = GVSearch.SelectedRow

        Case_ID.Text = row.Cells(1).Text
        Numero_Record_PRM.Text = row.Cells(1).Text
        If row.Cells(1).Text.Trim <> "" Then

            Numero_Record_PRM.Text = row.Cells(2).Text.Trim
            Patient_Name.Text = row.Cells(6).Text.Trim
            Provider_Name.Text = row.Cells(8).Text.Trim
Brandon
Top achievements
Rank 1
 asked on 18 Mar 2022
1 answer
118 views

Dear all,

 

I have the below radgrid defininition in my aspx page in which the selectionColumn is a checkbox. When I click on row, the postback is fired and I can calculate the sum of all selected rows and then display the results in the footer.

However when I click on the header checkbox, then all the lines are selected but the postback event is not fired.

Which property should be enable? Or maybe should it be managed differently?

My goal is to display in the footer, the sum of selected rows whatever it is by selection some specific rows or by using the select/unselect all checkbox.

Thanks

 

                                    <MasterTableView ShowFooter="true" DataKeyNames="ID" PageSize="50">
                                        <Columns>
                                            <telerik:GridClientSelectColumn HeaderStyle-Width="50px"></telerik:GridClientSelectColumn>
                                            <telerik:GridBoundColumn DataField="ID" FilterControlAltText="Filter on Chunk Key" HeaderText="Chunk Key" UniqueName="ID" HeaderStyle-Width="100px">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="PurchaseContract" FilterControlAltText="Filter on Purchase Ctr" HeaderText="Purchase Ctr" UniqueName="PurchaseContract" HeaderStyle-Width="150px">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Supplier" FilterControlAltText="Filter on Supplier" HeaderText="Supplier" UniqueName="Supplier">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="ShipmentStatus" FilterControlAltText="Filter on Ship. Status" HeaderText="Ship.Status" UniqueName="ShipmentStatus">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="ShipmentDate" FilterControlAltText="Filter on Ship. Date" HeaderText="Ship. Date" UniqueName="ShipmentDate" DataFormatString="{0:dd/MM/yyyy}">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="ShipmentRef" FilterControlAltText="Filter on Ship. Ref" HeaderText="Ship. Ref" UniqueName="ShipmentRef" HeaderStyle-Width="250px">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="FinancingBank" FilterControlAltText="Filter on Financing Bank" HeaderText="Financing Bank" UniqueName="FinancingBank">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="FinancingRef" FilterControlAltText="Filter on Financing Ref." HeaderText="Financing Ref." UniqueName="FinancingRef">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="NetWeight" FilterControlAltText="Filter on NetWeight" HeaderText="Net Weight" UniqueName="NetWeight" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Warehouse" FilterControlAltText="Filter on Warehouse" HeaderText="Warehouse" UniqueName="Warehouse">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="CustomsStatus" FilterControlAltText="Filter on CustomsStatus" HeaderText="Customs Status" UniqueName="CustomsStatus">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Customer" FilterControlAltText="Filter on Customer" HeaderText="Customer" UniqueName="Customer">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="SaleContract" FilterControlAltText="Filter on SaleContract" HeaderText="Sale Ctr" UniqueName="SaleContract">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="SaleInvoiceNb" FilterControlAltText="Filter on SaleInvoiceNb" HeaderText="Sale Invoice Nb" UniqueName="SaleInvoiceNb">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Vessel" FilterControlAltText="Filter on Vessel" HeaderText="Vessel" UniqueName="Vessel">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="0"></Scrolling>
                                        <Selecting AllowRowSelect="true"></Selecting>
                                    </ClientSettings>
                                    <PagerStyle AlwaysVisible="true" Mode="NumericPages" Position="Bottom" />
                                </telerik:RadGrid>

 

Attila Antal
Telerik team
 answered on 06 May 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?