I'm having trouble with the RadListBox on selected index changed. OnSelectedIndexChanged does not fire an event at all and OnClientSelectedIndexChanged gives a JS error.
I'm using the RadListBoxes to move items around as described in http://demos.telerik.com/aspnet-ajax/listbox/examples/overview/defaultcs.aspx#qsf-demo-source
But I also need to display information about the single selected item so the user knows if this is the right item to move. But I'm getting a Error: 'AllGroupsRadListBox_SelectedIndexChanged' is undefined.
<telerik:RadListBox runat="server" ID="AllGroupsRadListBox" Height="200px" Width="200px" AllowTransfer="true" SelectionMode="Single" TransferToID="SharedGroupsRadListBox" OnClientSelectedIndexChanged="AllGroupsRadListBox_SelectedIndexChanged" /><telerik:RadListBox runat="server" ID="SharedGroupsRadListBox" Height="200px" Width="200px" /><br />Users in selected group:<br /><telerik:RadListBox runat="server" ID="UsersRadListBox" Height="200px" Width="200px" /> private void FillAllGroups(){ BWGroups allGroups = new BWGroups(); allGroups.GetAllBWGroups(); AllGroupsRadListBox.DataTextField = "BWGroupName"; AllGroupsRadListBox.DataValueField = "BWGroupID"; AllGroupsRadListBox.DataSource = allGroups.BWGroupList; AllGroupsRadListBox.DataBind();} protected void AllGroupsRadListBox_SelectedIndexChanged(object sender, EventArgs e){int parseGroupId = -1; Int32.TryParse(AllGroupsRadListBox.SelectedValue.ToString(), out parseGroupId);BWUsers usersInGroup = new BWUsers(); if(parseGroupId > 0) usersInGroup.GetActiveBWUsersByGroupID(parseGroupId); UsersRadListBox.DataTextField = "BWGroupName";UsersRadListBox.DataValueField = "BWGroupID";UsersRadListBox.DataSource = usersInGroup.BWUserList;UsersRadListBox.DataBind();}
The same rules should also apply to DetailView.
<telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="99.8%" Orientation="Horizontal"> <telerik:RadPane ID="RadPane1" runat="server" Scrolling="none" Height="50px"> <telerik:RadMenu ID="settingMenu" runat="server" EnableEmbeddedSkins="false" Width="100%" EnableSelection="true" Skin="MySkin"> <Items> <telerik:RadMenuItem runat="server" ImageUrl="~/Images/NEW.png" HoveredImageUrl="~/Images/NEW.png" > </telerik:RadMenuItem> <telerik:RadMenuItem runat="server" Text="User Account Settings"> <GroupSettings ExpandDirection="Down" /> <Items> <telerik:RadMenuItem runat="server" NavigateUrl="Acc.aspx" Text="Account"> </telerik:RadMenuItem> <telerik:RadMenuItem runat="server" NavigateUrl="AccessRights.aspx" Text="Access Rights"> </telerik:RadMenuItem> <telerik:RadMenuItem runat="server" NavigateUrl="Modules.aspx" Text="Modules"> </telerik:RadMenuItem> </Items> </telerik:RadMenuItem> <telerik:RadMenuItem Text="Plan" NavigateUrl="Schedule.aspx"> </telerik:RadMenuItem> </Items> </telerik:RadMenu> </telerik:RadPane> <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500"> <telerik:RadSplitter ID="NestedSplitter" runat="server" LiveResize="true" ResizeMode="EndPane" OnClientLoaded="SplitterLoaded"> <telerik:RadPane ID="LeftPane" runat="server" Width="60" MinWidth="60" MaxWidth="60"> </telerik:RadPane> <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" BackColor="Red" /> <telerik:RadPane ID="ContentPane" runat="server" Width="80%" Scrolling="None"> <telerik:RadSplitter ID="NestedSplitter2" runat="server" LiveResize="true" Orientation="Horizontal"> <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" /> <telerik:RadPane ID="ContentPane2" runat="server" Scrolling="None"> <div id="quotescointainer1" class="quotescointainer"> <asp:Panel ID="pnlMain" runat="server"> <asp:ContentPlaceHolder ID="cphContent" runat="server"> </asp:ContentPlaceHolder> </asp:Panel> </div> </telerik:RadPane> </telerik:RadSplitter> </telerik:RadPane> </telerik:RadSplitter> </telerik:RadPane></telerik:RadSplitter>I'm getting a sharing violation exception when using RadAsyncUpload (version 2010.3.1117.35) to upload an Excel file which is also open in another window.
Is there a way to trap or prevent the error? The exception appears to occur before the client-side events fire, so neither the
OnClientFileUploadFailed or OnClientValidationFailed execute.
Thanks in advance for your help,