Answered by:
RadioButtonList only fire once.

Question
-
User-2146352328 posted
Hi.
I'm building this asp.net - telerik app and I have a RadioButtonList that only fires once.
I have tried to add a handler to the page loading but still will only fire once.
I have tried to add the handler - through the load page to the handled event but that did not work either.
To be more specific, it will only fire when I click on one of the two RadioButtons and the other one will not fire.
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="FIPaymentsReconcile.aspx.vb" Inherits="ModuleFI_FIBankExtrait" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentHeader" Runat="Server">Credit Cards Transactions Reconciliation </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentContent" Runat="Server"> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function pageLoad() { var grid = $find("<%= RadGridSW.ClientID %>"); var columns = grid.get_masterTableView().get_columns(); for (var i = 0; i < columns.length; i++) { columns[i].resizeToFit(false, true); } var grid2 = $find("<%= RadGridVISTA.ClientID %>"); var columns2 = grid2.get_masterTableView().get_columns(); for (var i = 0; i < columns2.length; i++) { columns2[i].resizeToFit(false, true); } } function onPopUpShowing(sender, args) { args.get_popUp().className += " popUpEditForm"; } function OnClientButtonClickingTemplate() { var oWnd = radopen("FIPaymentsReconcileUpload.aspx", "Upload Extrait File"); oWnd.center(); oWnd.show(); //width and height of RadWindow oWnd.setSize(620, 260); oWnd.minimize(); oWnd.maximize(); oWnd.restore(); } function OnClientPageLoad(sender, args) { setTimeout(function () { sender.set_status(""); sender.set_title("Εισαγωγή Extrait"); }, 0); } function NoEnter(sender, args) { if (args.get_keyCode() == 13) { args.set_cancel(false); } } function RowContextMenu(sender, eventArgs) { var menu = $find("<%=RadMenu1.ClientID %>"); var evt = eventArgs.get_domEvent(); if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") { return; } var index = eventArgs.get_itemIndexHierarchical(); document.getElementById("radGridClickedRowIndex").value = index; sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true); menu.show(evt); evt.cancelBubble = true; evt.returnValue = false; if (evt.stopPropagation) { evt.stopPropagation(); evt.preventDefault(); } } </script> <script type="text/javascript"> function confirmLinkButton(button) { function linkButtonCallbackFn(arg) { if (arg) { //obtains a __doPostBack() with the correct UniqueID as rendered by the framework eval(button.href); args.set_cancel(true); //can be used in a simpler environment so that event validation is not triggered. //__doPostBack(button.id, ""); } } radconfirm("Are you sure you want to postback?", linkButtonCallbackFn, 330, 180, null, "Confirm"); } function OnClientItemClicked(sender, args) { if (!confirm('Θέλετε να ενοποιήσετε τις εγγραφές;')) { args.set_cancel(true); } } /* den douleuei me tin kamia var x = 0; function OnClientradconfirm(sender, args) { if (x == 1) { x = 0; args.set_cancel(false); } else { args.set_cancel(true); function confirmCallback(arg) { if (arg) { x = 1; OnClientradconfirm(sender, args); } } radconfirm("Are you sure you want to close this window?", confirmCallback); } } */ </script> </telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadToolBar1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Simple"> </telerik:RadAjaxLoadingPanel> <telerik:RadToolBar ID="RadToolBar1" Runat="server" Skin="Glow" Width="100%"> <Items> <telerik:RadToolBarButton runat="server" Value="XLS" ImageUrl="~/Images/Filexls24.png" ToolTip="Export to XLS" Text="Export:" ImagePosition="Right"> </telerik:RadToolBarButton> <telerik:RadToolBarButton > <ItemTemplate> <table> <tr style="vertical-align:middle;"> <td> <asp:Label ID="Label1" runat="server" Text="Switch file upload"></asp:Label> </td> <td> <asp:ImageButton ID="CmdUpload" runat="server" ImageUrl="~/Images/FileUp24.png" AlternateText="File Upload" ToolTip="Load switching organization file" OnClientClick="OnClientButtonClickingTemplate(); return false;"/> </td> </tr> </table> </ItemTemplate> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server"> <ItemTemplate> <table> <tr> <td>From Date</td> <td> <telerik:RadDatePicker ID="FldDocDateFrom" Runat="server" AutoPostBack="false" Skin="Bootstrap" Culture="en-GB"> </telerik:RadDatePicker> </td> </tr> </table> </ItemTemplate> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server"> <ItemTemplate> <table> <tr> <td style="width: 10px"> </td> <td>To Date</td> <td> <telerik:RadDatePicker ID="FldDocDateTo" Runat="server" AutoPostBack="false" Skin="Bootstrap" Culture="en-GB"> </telerik:RadDatePicker> </td> </tr> </table> </itemTemplate> </telerik:RadToolBarButton> <telerik:RadToolBarDropDown runat="server" Text="WINBANK" ImageUrl="~/Images/Grid24.png" ToolTip="Switching Organization" > <Buttons> <telerik:RadToolBarButton Text="CardLink" Value="CardLink"></telerik:RadToolBarButton> <telerik:RadToolBarButton Text="WinBank" Value="WINBANK"></telerik:RadToolBarButton> </Buttons> </telerik:RadToolBarDropDown> <telerik:RadToolBarButton runat="server"> <ItemTemplate> <table> <tr style="white-space: nowrap; vertical-align: middle;"> <td style="white-space: nowrap; vertical-align: middle;"> <asp:Label runat="server" Text="Reconcilitaion Status: "></asp:Label> </td> <td style="white-space: nowrap; vertical-align: middle;"> <asp:RadioButtonList ID="FldRStatus" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="FldRStatus_SelectedIndexChanged"> <asp:ListItem Value="1" Selected="True">Not Reconciled</asp:ListItem> <asp:ListItem Value="0">Reconciled</asp:ListItem> </asp:RadioButtonList> </td> </tr> </table> </ItemTemplate> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server"> <ItemTemplate> <table> <tr> <td rowspan="3" style="vertical-align: middle; text-align: center; width: 150px;"> <telerik:RadImageButton runat="server" ID="CmdRefresh" Image-Url="~/Images/Refresh32.png" ToolTip="Refresh" Width="32px" CommandName="Refresh" Height="32" OnClick="CmdRefresh_Click"></telerik:RadImageButton> </td> </tr> </table> </ItemTemplate> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar> <asp:Panel ID="Panel1" runat="server"> <table runat="server" id="TblNotReconciled"> <tr> <td style="background-color: #C0C0C0; font-size: large; font-weight: bold; text-align: center; vertical-align: middle"> <asp:Label ID="LblSW" runat="server" Text="SWITCH Organization Transactions Not in VISTA"></asp:Label> </td> </tr> <tr> <td> <telerik:RadGrid ID="RadGridSW" runat="server" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" ShowGroupPanel="True" Skin="Simple" Height="300px" AllowPaging="True"> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True"> <Selecting AllowRowSelect="True" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <ClientEvents OnRowContextMenu="RowContextMenu" /> </ClientSettings> <MasterTableView DataKeyNames="SwitchOrg,SwitchOrgID,PaymentDate" EditMode="InPlace" PageSize="100"> <Columns> <telerik:GridBoundColumn DataField="SwitchOrg" FilterControlAltText="Filter SwitchOrg column" HeaderText="SwitchOrg" ReadOnly="True" SortExpression="SwitchOrg" UniqueName="SwitchOrg"> <HeaderStyle HorizontalAlign="Center" Wrap="True" Width="120px"/> <ItemStyle HorizontalAlign="Left" Wrap="True" Width="120px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SwitchOrgID" DataType="System.Int32" FilterControlAltText="Filter SwitchOrgID column" HeaderText="SwitchOrgID" ReadOnly="True" SortExpression="SwitchOrgID" UniqueName="SwitchOrgID"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PaymentCardTransRefCode" FilterControlAltText="Filter PaymentCardTransRefCode column" HeaderText="RRN" SortExpression="PaymentCardTransRefCode" UniqueName="PaymentCardTransRefCode" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PaymentDate" DataType="System.DateTime" FilterControlAltText="Filter PaymentDate column" HeaderText="PaymentDate" SortExpression="PaymentDate" UniqueName="PaymentDate" ReadOnly="true" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TID" FilterControlAltText="Filter TID column" HeaderText="TID" SortExpression="TID" UniqueName="TID" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Batch" FilterControlAltText="Filter Batch column" HeaderText="Batch" SortExpression="Batch" UniqueName="Batch" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Acquirer" FilterControlAltText="Filter Acquirer column" HeaderText="Acquirer" SortExpression="Acquirer" UniqueName="Acquirer" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardNo" FilterControlAltText="Filter CardNo column" HeaderText="CardNo" SortExpression="CardNo" UniqueName="CardNo" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardType" FilterControlAltText="Filter CardType column" HeaderText="CardType" SortExpression="CardType" UniqueName="CardType" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardBankIssuer" FilterControlAltText="Filter CardBankIssuer column" HeaderText="CardBankIssuer" SortExpression="CardBankIssuer" UniqueName="CardBankIssuer" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Amount" DataFormatString="{0:c}" FilterControlAltText="Filter Amount column" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AuthorizationCode" FilterControlAltText="Filter AuthorizationCode column" HeaderText="AuthorizationCode" SortExpression="AuthorizationCode" UniqueName="AuthorizationCode" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CinemaShortName" HeaderText="Cinema" SortExpression="CinemaShortName" UniqueName="CinemaShortName" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TransNumber" HeaderText="VISTA Transaction" SortExpression="TransNumber" UniqueName="TransNumber" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Center" Wrap="False" /> </telerik:GridBoundColumn> </Columns> <EditFormSettings UserControlName="FIPaymentsReconcileUpload.aspx" EditFormType="WebUserControl"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid> </td> </tr> <tr> <td style="background-color: #C0C0C0; font-size: large; font-weight: bold; text-align: center; vertical-align: middle"> <asp:Label ID="LblVISTA" runat="server" Text="VISTA Transactions Not in SWITCH Organization"></asp:Label> </td> </tr> <tr> <td> <telerik:RadGrid ID="RadGridVISTA" runat="server" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" ShowGroupPanel="True" Skin="Simple" Height="300px" AllowPaging="true"> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True"> <Selecting AllowRowSelect="True"/> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <ClientEvents OnRowContextMenu="RowContextMenu" /> </ClientSettings> <MasterTableView DataKeyNames="SwitchOrg,CinemaCode,TransNumber,TransSequence,PaymentDate" EditMode="InPlace" PageSize="100"> <Columns> <telerik:GridBoundColumn DataField="SwitchOrg" FilterControlAltText="Filter SwitchOrg column" HeaderText="SwitchOrg" ReadOnly="True" SortExpression="SwitchOrg" UniqueName="SwitchOrg"> <HeaderStyle HorizontalAlign="Center" Wrap="True" Width="120px"/> <ItemStyle HorizontalAlign="Left" Wrap="True" Width="120px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SwitchOrgID" DataType="System.Int32" FilterControlAltText="Filter SwitchOrgID column" HeaderText="SwitchOrgID" ReadOnly="True" SortExpression="SwitchOrgID" UniqueName="SwitchOrgID"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PaymentCardTransRefCode" FilterControlAltText="Filter PaymentCardTransRefCode column" HeaderText="RRN" SortExpression="PaymentCardTransRefCode" UniqueName="PaymentCardTransRefCode" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PaymentDate" DataType="System.DateTime" FilterControlAltText="Filter PaymentDate column" HeaderText="PaymentDate" SortExpression="PaymentDate" UniqueName="PaymentDate" ReadOnly="true" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TID" FilterControlAltText="Filter TID column" HeaderText="TID" SortExpression="TID" UniqueName="TID" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Batch" FilterControlAltText="Filter Batch column" HeaderText="Batch" SortExpression="Batch" UniqueName="Batch" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Acquirer" FilterControlAltText="Filter Acquirer column" HeaderText="Acquirer" SortExpression="Acquirer" UniqueName="Acquirer" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardNo" FilterControlAltText="Filter CardNo column" HeaderText="CardNo" SortExpression="CardNo" UniqueName="CardNo" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardType" FilterControlAltText="Filter CardType column" HeaderText="CardType" SortExpression="CardType" UniqueName="CardType" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardBankIssuer" FilterControlAltText="Filter CardBankIssuer column" HeaderText="CardBankIssuer" SortExpression="CardBankIssuer" UniqueName="CardBankIssuer" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Amount" DataFormatString="{0:c}" FilterControlAltText="Filter Amount column" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AuthorizationCode" FilterControlAltText="Filter AuthorizationCode column" HeaderText="AuthorizationCode" SortExpression="AuthorizationCode" UniqueName="AuthorizationCode" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CinemaShortName" HeaderText="Cinema" SortExpression="CinemaShortName" UniqueName="CinemaShortName" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TransNumber" HeaderText="VISTA Transaction" SortExpression="TransNumber" UniqueName="TransNumber" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Center" Wrap="False" /> </telerik:GridBoundColumn> </Columns> <EditFormSettings UserControlName="FIPaymentsReconcileUpload.aspx" EditFormType="WebUserControl"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> <table runat="server" id="TblReconciled" visible="false"> <tr> <td style="background-color: #C0C0C0; font-size: large; font-weight: bold; text-align: center; vertical-align: middle"> Credit Card Transactions Reconciled </td> </tr> <tr> <td> <telerik:RadGrid ID="RadGridRR" runat="server" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" ShowGroupPanel="True" Skin="Simple" Height="600px" AllowPaging="true"> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True"> <Selecting AllowRowSelect="True" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <MasterTableView DataKeyNames="SwitchOrg,SwitchOrgID" EditMode="InPlace" PageSize="100"> <Columns> <telerik:GridBoundColumn DataField="SwitchOrg" FilterControlAltText="Filter SwitchOrg column" HeaderText="SwitchOrg" ReadOnly="True" SortExpression="SwitchOrg" UniqueName="SwitchOrg"> <HeaderStyle HorizontalAlign="Center" Wrap="True" Width="120px"/> <ItemStyle HorizontalAlign="Left" Wrap="True" Width="120px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SwitchOrgID" DataType="System.Int32" FilterControlAltText="Filter SwitchOrgID column" HeaderText="SwitchOrgID" ReadOnly="True" SortExpression="SwitchOrgID" UniqueName="SwitchOrgID"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PaymentCardTransRefCode" FilterControlAltText="Filter PaymentCardTransRefCode column" HeaderText="RRN" SortExpression="PaymentCardTransRefCode" UniqueName="PaymentCardTransRefCode" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PaymentDate" DataType="System.DateTime" FilterControlAltText="Filter PaymentDate column" HeaderText="PaymentDate" SortExpression="PaymentDate" UniqueName="PaymentDate" ReadOnly="true" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TID" FilterControlAltText="Filter TID column" HeaderText="TID" SortExpression="TID" UniqueName="TID" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Batch" FilterControlAltText="Filter Batch column" HeaderText="Batch" SortExpression="Batch" UniqueName="Batch" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Acquirer" FilterControlAltText="Filter Acquirer column" HeaderText="Acquirer" SortExpression="Acquirer" UniqueName="Acquirer" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardNo" FilterControlAltText="Filter CardNo column" HeaderText="CardNo" SortExpression="CardNo" UniqueName="CardNo" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardType" FilterControlAltText="Filter CardType column" HeaderText="CardType" SortExpression="CardType" UniqueName="CardType" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CardBankIssuer" FilterControlAltText="Filter CardBankIssuer column" HeaderText="CardBankIssuer" SortExpression="CardBankIssuer" UniqueName="CardBankIssuer" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Amount" DataFormatString="{0:c}" FilterControlAltText="Filter Amount column" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AuthorizationCode" FilterControlAltText="Filter AuthorizationCode column" HeaderText="AuthorizationCode" SortExpression="AuthorizationCode" UniqueName="AuthorizationCode" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CinemaShortName" HeaderText="Cinema" SortExpression="CinemaShortName" UniqueName="CinemaShortName" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Left" Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TransNumber" HeaderText="VISTA Transaction" SortExpression="TransNumber" UniqueName="TransNumber" ReadOnly="true"> <HeaderStyle HorizontalAlign="Center" Wrap="False" /> <ItemStyle HorizontalAlign="Center" Wrap="False" /> </telerik:GridBoundColumn> </Columns> <EditFormSettings UserControlName="FIPaymentsReconcileUpload.aspx" EditFormType="WebUserControl"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </asp:Panel> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="True" Behaviors="Close, Move" OnClientPageLoad="OnClientPageLoad"> <Windows> <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" AutoSize="false" Title="Telerik RadWindow" Behaviors="Close, Move" > </telerik:RadWindow> </Windows> </telerik:RadWindowManager> <asp:HiddenField ID="HiddenSwitchOrgValue" runat="server" Value="WINBANK" /> <asp:Button ID="HiddenButtonUniqueID" runat="server" Text="Button" Style="display: none;" OnClientClick="return false;" /> <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" /> <telerik:RadContextMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick" OnClientItemClicking="OnClientItemClicked" EnableRoundedCorners="true" EnableShadows="true"> <Items> <telerik:RadMenuItem Text="Match" Value="C"/> </Items> </telerik:RadContextMenu> </asp:Content>
code without the data manips:
Imports System.Data Imports System.Data.SqlClient Imports Telerik.Web.UI Imports VillageClassDataAccess Partial Class ModuleFI_FIBankExtrait Inherits System.Web.UI.Page Private Sub _Default_Load(sender As Object, e As EventArgs) Handles Me.Load Me.Form.DefaultButton = HiddenButtonUniqueID.UniqueID If Not Me.IsPostBack Then Dim FldRStatus As RadioButtonList = DirectCast(Me.RadToolBar1.Items(5).FindControl("FldRStatus"), RadioButtonList) ''here i try to add the handler AddHandler FldRStatus.SelectedIndexChanged, AddressOf FldRStatus_SelectedIndexChanged Dim FldDocDateFrom As RadDatePicker = DirectCast(Me.RadToolBar1.Items(2).FindControl("FldDocDateFrom"), RadDatePicker) Dim FldDocDateTo As RadDatePicker = DirectCast(Me.RadToolBar1.Items(3).FindControl("FldDocDateTo"), RadDatePicker) FldDocDateFrom.SelectedDate = Now FldDocDateTo.SelectedDate = Now End If End Sub Private Sub RadGridSW_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles RadGridSW.NeedDataSource Dim FldRStatus As RadioButtonList = DirectCast(Me.RadToolBar1.Items(5).FindControl("FldRStatus"), RadioButtonList) If FldRStatus.SelectedValue.ToString = "0" Then Exit Sub Dim FldDocDateFrom As RadDatePicker = DirectCast(Me.RadToolBar1.Items(2).FindControl("FldDocDateFrom"), RadDatePicker) Dim FldDocDateTo As RadDatePicker = DirectCast(Me.RadToolBar1.Items(3).FindControl("FldDocDateTo"), RadDatePicker) '' ... End Sub Private Sub RadGridVISTA_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles RadGridVISTA.NeedDataSource Dim FldRStatus As RadioButtonList = DirectCast(Me.RadToolBar1.Items(5).FindControl("FldRStatus"), RadioButtonList) If FldRStatus.SelectedValue.ToString = "0" Then Exit Sub Dim FldDocDateFrom As RadDatePicker = DirectCast(Me.RadToolBar1.Items(2).FindControl("FldDocDateFrom"), RadDatePicker) Dim FldDocDateTo As RadDatePicker = DirectCast(Me.RadToolBar1.Items(3).FindControl("FldDocDateTo"), RadDatePicker) ''.. End Sub Private Sub RadGridRR_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles RadGridRR.NeedDataSource Dim FldRStatus As RadioButtonList = DirectCast(Me.RadToolBar1.Items(5).FindControl("FldRStatus"), RadioButtonList) If FldRStatus.SelectedValue.ToString = "1" Then Exit Sub ''.. End Sub Protected Sub CmdRefresh_Click(sender As Object, e As ImageButtonClickEventArgs) RadGridSW.Rebind() RadGridVISTA.Rebind() RadGridRR.Rebind() End Sub Protected Sub FldRStatus_SelectedIndexChanged(sender As Object, e As EventArgs) Dim FldRStatus As RadioButtonList = DirectCast(sender, RadioButtonList) FldRStatus.AutoPostBack = True If FldRStatus.SelectedValue.ToString = "0" Then TblNotReconciled.Visible = False Else TblNotReconciled.Visible = True End If TblReconciled.Visible = Not TblNotReconciled.Visible CmdRefresh_Click(Nothing, Nothing) End Sub Protected Sub RadToolBar1_ButtonClick1(sender As Object, e As RadToolBarEventArgs) Handles RadToolBar1.ButtonClick Select Case e.Item.Value.ToUpper Case "XLS" RadGridSW.ExportSettings.FileName = "PaymentsReconcile" RadGridSW.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx RadGridSW.ExportSettings.IgnorePaging = True RadGridSW.ExportToExcel() Case "CardLink".ToUpper RadToolBar1.Items(4).Text = e.Item.Text HiddenSwitchOrgValue.Value = e.Item.Value CmdRefresh_Click(Nothing, Nothing) Case "WINBANK" RadToolBar1.Items(4).Text = e.Item.Text HiddenSwitchOrgValue.Value = e.Item.Value CmdRefresh_Click(Nothing, Nothing) End Select End Sub Private Sub ModuleFI_FIBankExtrait_Init(sender As Object, e As EventArgs) Handles Me.Init If Not Me.IsPostBack Then Dim FldDocDateFrom As RadDatePicker = DirectCast(Me.RadToolBar1.Items(2).FindControl("FldDocDateFrom"), RadDatePicker) Dim FldDocDateTo As RadDatePicker = DirectCast(Me.RadToolBar1.Items(3).FindControl("FldDocDateTo"), RadDatePicker) FldDocDateTo.SelectedDate = Date.Now FldDocDateFrom.SelectedDate = DateAdd(DateInterval.Month, -1, Date.Now) End If End Sub Protected Sub RadMenu1_ItemClick(ByVal sender As Object, ByVal e As RadMenuEventArgs) If e.Item.Text.ToUpper <> "Match".ToUpper Then Exit Sub If RadGridSW.SelectedItems.Count <> 1 Or RadGridVISTA.SelectedItems.Count <> 1 Then Exit Sub Dim clsMatchSW As New MatchBankID For Each item As GridDataItem In RadGridSW.SelectedItems clsMatchSW.PaymentSwitchOrg = item.GetDataKeyValue("SwitchOrg") clsMatchSW.PaymentSwitchOrgID = item.GetDataKeyValue("SwitchOrgID") Next For Each item As GridDataItem In RadGridVISTA.SelectedItems clsMatchSW.DWCinemaCode = item.GetDataKeyValue("CinemaCode") clsMatchSW.DWVistaTransaction = item.GetDataKeyValue("TransNumber") clsMatchSW.DWVistaTransactionSequence = item.GetDataKeyValue("TransSequence") Next Dim vu As New VillageUserRoles clsMatchSW.UserID = vu.UserID If String.IsNullOrEmpty(clsMatchSW.DWCinemaCode) _ OrElse String.IsNullOrEmpty(clsMatchSW.DWVistaTransaction) OrElse String.IsNullOrEmpty(clsMatchSW.PaymentSwitchOrg) _ OrElse String.IsNullOrEmpty(clsMatchSW.PaymentSwitchOrgID) OrElse String.IsNullOrEmpty(clsMatchSW.DWVistaTransactionSequence) _ OrElse String.IsNullOrEmpty(clsMatchSW.UserID) Then Exit Sub End If If updateDWSWTable(clsMatchSW) Then CmdRefresh_Click(Nothing, Nothing) End Sub
lease note that the radiobuttonlist is inside a telerik control, so I'm not sure if that plays a role.
I wiil try to get it out of the telerik group to see if it works.
Monday, March 27, 2017 1:05 PM
Answers
-
User-2146352328 posted
Nothing worked, so I'm using a telerik RadiobuttonList to make it work
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 28, 2017 9:30 AM
All replies
-
User-2146352328 posted
Hi.
Yes the problem is when it is inside the telerik toolbar.
Any thoughts?
I have tried the custom telerik radiobuttonlist but is messing all the design really bad.
Is there another way?
thanks.
Monday, March 27, 2017 1:24 PM -
User475983607 posted
Hi.
Yes the problem is when it is inside the telerik toolbar.
Any thoughts?
I have tried the custom telerik radiobuttonlist but is messing all the design really bad.
Is there another way?
thanks.
You should ask this question on the telerik forum.
Monday, March 27, 2017 1:26 PM -
User-2146352328 posted
Hi.
Before that.
Is there a way or a thought to make the simple radiolist to work?
Thanks.
Monday, March 27, 2017 2:01 PM -
User475983607 posted
Hi.
Before that.
Is there a way or a thought to make the simple radiolist to work?
Thanks.
Well, when you moved the radiobuttonlist outside the telerik control and it works so it has something with how the telerik control works or your understanding of how the control works. I'm guessing it has something to do with the RadAjaxManager control. Updating the DOM is destructive to the client side events that are wired up (by AutoPostBack="True") when the page initially loads. If you overwrite the radio button HTML then all the client side events are lost. You need to reassign the client events.
Since you are using the RadAjaxManager, you should learn how the controls work by reading the Telerik the documentation.
Monday, March 27, 2017 2:30 PM -
User-2146352328 posted
Ok.
Currently nothing works.
I have tried:
http://www.telerik.com/forums/radajaxmanager-won-t-work-with-radiobuttonlist
http://www.telerik.com/forums/the-radajaxmanager-do-not-fire-postback-with-radiobuttonlist
http://www.telerik.com/forums/postback-not-firing-for-radiobuttonlist
http://www.telerik.com/forums/radajaxmanager-does-not-work-with-radiobuttons-radiobuttonlists
They all indicate that there are errors on how the control works with Ajax but every solution I tried won't work.
I think I'll try the telerik radiolist and hope I can fix the appearance issues I go before.
I will post back if I find or do not find the solution.
Thanks.
Monday, March 27, 2017 2:55 PM -
User-2146352328 posted
Nothing worked, so I'm using a telerik RadiobuttonList to make it work
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 28, 2017 9:30 AM